title: using Moment with Angular library 13 causes an error
body: <p>When i use the moment.js (latest version) in an angular library, i am facing the following problem:</p>
  <p>vendor.js:sourcemap:106713 ERROR TypeError: (moment__WEBPACK_IMPORTED_MODULE_2___namespace_cache || (intermediate value)(intermediate value)) is not a function.
  When i debug in the browser the moment().year() for example it works.</p>
  <p>Can anyone have an idea, what is the reason for this error? maybe the EcmaScript version.</p>
  <p>I will appreciate for any help.</p>
  <pre><code>&gt; &quot;compilerOptions&quot;: {
  &gt;     &quot;declaration&quot;: false,
  &gt;     &quot;downlevelIteration&quot;: true,
  &gt;     &quot;experimentalDecorators&quot;: true,
  &gt;     &quot;lib&quot;: [ &quot;es6&quot;, &quot;dom&quot; ],
  &gt;     &quot;mapRoot&quot;: &quot;./&quot;,
  &gt;     &quot;module&quot;: &quot;esnext&quot;,
  &gt;     &quot;skipLibCheck&quot;: true,
  &gt;     &quot;moduleResolution&quot;: &quot;node&quot;,
  &gt;     &quot;outDir&quot;: &quot;../dist/out-tsc&quot;,
  &gt;     &quot;sourceMap&quot;: true,
  &gt;     &quot;target&quot;: &quot;ES2015&quot;,
  &gt;     &quot;typeRoots&quot;: [
  &gt;       &quot;../node_modules/@types&quot;
  &gt;     ],
  </code></pre>