<?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: Vite.js import warning in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/vite-js-import-warning/m-p/1114993#M75197</link>
    <description>&lt;P&gt;This isn't specific to the ArcGIS JSAPI. I think it might be part of how Stencil does it's builds and adds the ignore comments for webpack builds, but doesn't for vite. Understandable, it doesn't have the userbase that webpack does. This warning can be safely ignored, there is no fix we can provide. If you really want to suppress the warnings, &lt;A href="https://github.com/rollup/rollup/issues/408" target="_self"&gt;this issue&lt;/A&gt; has some recommendations.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Nov 2021 19:02:24 GMT</pubDate>
    <dc:creator>ReneRubalcava</dc:creator>
    <dc:date>2021-11-08T19:02:24Z</dc:date>
    <item>
      <title>Vite.js import warning</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/vite-js-import-warning/m-p/1114926#M75194</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P data-unlink="true"&gt;I'm using vite.js (2.6.4) w/ the v4.21.2 of JSAPI and getting the warning listed below when I start up the dev server.&amp;nbsp; I heard Rene mention something about this in one of his &lt;A href="https://www.youtube.com/watch?v=RF_q0tuMyic" target="_self"&gt;videos&lt;/A&gt; and understood it to be a problem fixed in 4.19.&amp;nbsp; However I can't find mention of it in the changelog.&amp;nbsp; I'm also confused because it looks like a Webpack problem when I thought vite.js used Rollup.&amp;nbsp; Can anyone please clarify for me?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;--john&lt;/P&gt;&lt;LI-CODE lang="c"&gt;/Users/jcc/projects/webmap-demo/node_modules/.vite/chunk-3UH5BQI4.js
1823|      return module2[exportName];
1824|    }
1825|    return import(
   |                  ^
1826|      /* webpackInclude: /\.entry\.js$/ */
1827|      /* webpackExclude: /\.system\.entry\.js$/ */
The above dynamic import cannot be analyzed by vite.
See https://github.com/rollup/plugins/tree/master/packages/dynamic-import-vars#limitations for supported dynamic import formats. If this is intended to be left as-is, you can use the /* @vite-ignore */ comment inside the import() call to suppress this warning.

  Plugin: vite:import-analysis
  File: /Users/jcc/projects/webmap-demo/node_modules/.vite/chunk-3UH5BQI4.js?v=0d4ab57f&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 16:30:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/vite-js-import-warning/m-p/1114926#M75194</guid>
      <dc:creator>john_cartwright_noaa</dc:creator>
      <dc:date>2021-11-08T16:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Vite.js import warning</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/vite-js-import-warning/m-p/1114993#M75197</link>
      <description>&lt;P&gt;This isn't specific to the ArcGIS JSAPI. I think it might be part of how Stencil does it's builds and adds the ignore comments for webpack builds, but doesn't for vite. Understandable, it doesn't have the userbase that webpack does. This warning can be safely ignored, there is no fix we can provide. If you really want to suppress the warnings, &lt;A href="https://github.com/rollup/rollup/issues/408" target="_self"&gt;this issue&lt;/A&gt; has some recommendations.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 19:02:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/vite-js-import-warning/m-p/1114993#M75197</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-11-08T19:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Vite.js import warning</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/vite-js-import-warning/m-p/1115054#M75201</link>
      <description>&lt;P&gt;Thanks for the explanation Rene.&amp;nbsp; I couldn't seem to suppress just that specific warning, so I just set Vite's "--logLevel error" in the npm script.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 21:32:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/vite-js-import-warning/m-p/1115054#M75201</guid>
      <dc:creator>john_cartwright_noaa</dc:creator>
      <dc:date>2021-11-08T21:32:54Z</dc:date>
    </item>
  </channel>
</rss>

