<?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 JSON not loading in dev environment in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/json-not-loading-in-dev-environment/m-p/1102741#M74824</link>
    <description>&lt;P&gt;I am using the JavaScript API within a Vue CLI project. I get the following errors when the attribution, zoom, and pop up widgets load. These errors popup only when I use the the dev server that is provided with Vue CLI.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 813px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/24050i4FE5F1F47C57EAF0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The above errors go away when the project is built and served on a web sever like IIS/Apache.&lt;/P&gt;&lt;P&gt;I understand this is a MIME type issue.&amp;nbsp;What can I do to get these errors go away in my dev environment?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Sep 2021 19:21:17 GMT</pubDate>
    <dc:creator>lakshmanankrishnan</dc:creator>
    <dc:date>2021-09-28T19:21:17Z</dc:date>
    <item>
      <title>JSON not loading in dev environment</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/json-not-loading-in-dev-environment/m-p/1102741#M74824</link>
      <description>&lt;P&gt;I am using the JavaScript API within a Vue CLI project. I get the following errors when the attribution, zoom, and pop up widgets load. These errors popup only when I use the the dev server that is provided with Vue CLI.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 813px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/24050i4FE5F1F47C57EAF0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The above errors go away when the project is built and served on a web sever like IIS/Apache.&lt;/P&gt;&lt;P&gt;I understand this is a MIME type issue.&amp;nbsp;What can I do to get these errors go away in my dev environment?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 19:21:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/json-not-loading-in-dev-environment/m-p/1102741#M74824</guid>
      <dc:creator>lakshmanankrishnan</dc:creator>
      <dc:date>2021-09-28T19:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: JSON not loading in dev environment</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/json-not-loading-in-dev-environment/m-p/1102815#M74828</link>
      <description>&lt;P&gt;Are you trying to copy the assets locally? Can you provide a repo app, you might need to play with the config.assetsPath if you want the assets locally. Here is a demo app using vue3, the JSAPI and local assets.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/odoe/vue-jsapi-calcite" target="_blank"&gt;https://github.com/odoe/vue-jsapi-calcite&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I haven't run into MIME type issue with the cli server before, it's usually how the assets are being copied and referencing them correctly.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 21:34:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/json-not-loading-in-dev-environment/m-p/1102815#M74828</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-09-28T21:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: JSON not loading in dev environment</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/json-not-loading-in-dev-environment/m-p/1103151#M74839</link>
      <description>It ended up being an assetspath issue. I have fixed it. Thanks.&lt;BR /&gt;-lak krishnan&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Sep 2021 16:09:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/json-not-loading-in-dev-environment/m-p/1103151#M74839</guid>
      <dc:creator>lakshmanankrishnan</dc:creator>
      <dc:date>2021-09-29T16:09:04Z</dc:date>
    </item>
  </channel>
</rss>

