<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Calcite/Stencil JS is breaking Vitest: Named export &amp;quot;getAssetPath&amp;quot; not found in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-stencil-js-is-breaking-vitest-named-export/m-p/1346140#M82698</link>
    <description>&lt;P&gt;It looks like this question has already been posted to calcite-design-system github repository. That's the best location to ask questions about Calcite and Stencil: &lt;A href="https://github.com/Esri/calcite-design-system/issues/5077#issuecomment-1794811657" target="_blank"&gt;https://github.com/Esri/calcite-design-system/issues/5077#issuecomment-1794811657&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Nov 2023 16:17:31 GMT</pubDate>
    <dc:creator>AndyGup</dc:creator>
    <dc:date>2023-11-06T16:17:31Z</dc:date>
    <item>
      <title>Calcite/Stencil JS is breaking Vitest: Named export "getAssetPath" not found</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-stencil-js-is-breaking-vitest-named-export/m-p/1346057#M82693</link>
      <description>&lt;P&gt;I'm encountering a really frustrating issue trying to use Vitest with the ArcGIS JS API. Currently I have to mock every view that utilises anything from calcite in order to get Vitest to work for me, otherwise it fails 100% of the time.&lt;/P&gt;&lt;P&gt;It looks like there is an issue with how Vitest interacts with the imports of Stencil JS. Has anyone encountered this? Its been an issue for at least 6 month or so.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;SyntaxError: Named export 'getAssetPath' not found. The requested module '@stencil/core/internal/client/index.js' is a CommonJS module, which may not support all module.exports as named exports.  
CommonJS modules can always be imported via the default export, for example using:

import pkg from '@stencil/core/internal/client/index.js';
const { getAssetPath, setAssetPath, setNonce, setPlatformOptions } = pkg;&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 06 Nov 2023 13:47:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-stencil-js-is-breaking-vitest-named-export/m-p/1346057#M82693</guid>
      <dc:creator>JonnyDawe</dc:creator>
      <dc:date>2023-11-06T13:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calcite/Stencil JS is breaking Vitest: Named export "getAssetPath" not found</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-stencil-js-is-breaking-vitest-named-export/m-p/1346140#M82698</link>
      <description>&lt;P&gt;It looks like this question has already been posted to calcite-design-system github repository. That's the best location to ask questions about Calcite and Stencil: &lt;A href="https://github.com/Esri/calcite-design-system/issues/5077#issuecomment-1794811657" target="_blank"&gt;https://github.com/Esri/calcite-design-system/issues/5077#issuecomment-1794811657&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 16:17:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-stencil-js-is-breaking-vitest-named-export/m-p/1346140#M82698</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2023-11-06T16:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calcite/Stencil JS is breaking Vitest: Named export "getAssetPath" not found</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-stencil-js-is-breaking-vitest-named-export/m-p/1346154#M82699</link>
      <description>&lt;P&gt;Thanks Andy - I'll continue my communications on there!&lt;/P&gt;&lt;P&gt;I posted on here as there does seem to be a cross-post back to esri community (&lt;A href="https://community.esri.com/t5/arcgis-api-for-javascript-questions/svelte-kit-build-error/m-p/1123928" target="_blank"&gt;https://community.esri.com/t5/arcgis-api-for-javascript-questions/svelte-kit-build-error/m-p/1123928&lt;/A&gt;) where someone did previously create a potential work around, though I haven't had any success using it myself.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 16:35:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-stencil-js-is-breaking-vitest-named-export/m-p/1346154#M82699</guid>
      <dc:creator>JonnyDawe</dc:creator>
      <dc:date>2023-11-06T16:35:21Z</dc:date>
    </item>
  </channel>
</rss>

