<?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: Using calcite with React: &amp;quot;could not fetch component message bundle&amp;quot; in Calcite Design System Questions</title>
    <link>https://community.esri.com/t5/calcite-design-system-questions/using-calcite-with-react-quot-could-not-fetch/m-p/1279943#M372</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/499153"&gt;@sccwrp&lt;/a&gt;&amp;nbsp;Would you be able to put together an example with &lt;A href="https://codesandbox.io/s/calcite-template-p95kp?file=/src/App.js" target="_blank" rel="noopener"&gt;CodeSandbox&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;There are a few gotchas related to React, documented on the &lt;A href="https://developers.arcgis.com/calcite-design-system/resources/frameworks/#calcite-components-react" target="_blank" rel="noopener"&gt;Framework integration page&lt;/A&gt;, if its a helpful resource for getting started with Calcite and React.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Apr 2023 21:57:21 GMT</pubDate>
    <dc:creator>KittyHurley</dc:creator>
    <dc:date>2023-04-18T21:57:21Z</dc:date>
    <item>
      <title>Using calcite with React: "could not fetch component message bundle"</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/using-calcite-with-react-quot-could-not-fetch/m-p/1279938#M370</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I'm running into trouble using a lot of the components with React. Imports all work fine, but when I try to use some components (for instance, CalciteButton) in my app, I receive an error message that says:&lt;/P&gt;&lt;P&gt;Error: could not fetch component message bundle&lt;/P&gt;&lt;P&gt;I've cloned the example React repo from GitHub and all components work fine, but I can't figure out what I'm doing wrong.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 21:46:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/using-calcite-with-react-quot-could-not-fetch/m-p/1279938#M370</guid>
      <dc:creator>sccwrp</dc:creator>
      <dc:date>2023-04-18T21:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using calcite with React: "could not fetch component message bundle"</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/using-calcite-with-react-quot-could-not-fetch/m-p/1279942#M371</link>
      <description>&lt;P&gt;Without seeing your code, I don't know what you already have.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is your import like this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import "@esri/calcite-components/dist/components/calcite-button";
import "@esri/calcite-components/dist/calcite/calcite.css";&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and your file structure like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LefterisKoumis_1-1681855402521.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/68325iCB9AF399FBE66B6C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LefterisKoumis_1-1681855402521.png" alt="LefterisKoumis_1-1681855402521.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 22:03:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/using-calcite-with-react-quot-could-not-fetch/m-p/1279942#M371</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2023-04-18T22:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using calcite with React: "could not fetch component message bundle"</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/using-calcite-with-react-quot-could-not-fetch/m-p/1279943#M372</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/499153"&gt;@sccwrp&lt;/a&gt;&amp;nbsp;Would you be able to put together an example with &lt;A href="https://codesandbox.io/s/calcite-template-p95kp?file=/src/App.js" target="_blank" rel="noopener"&gt;CodeSandbox&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;There are a few gotchas related to React, documented on the &lt;A href="https://developers.arcgis.com/calcite-design-system/resources/frameworks/#calcite-components-react" target="_blank" rel="noopener"&gt;Framework integration page&lt;/A&gt;, if its a helpful resource for getting started with Calcite and React.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 21:57:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/using-calcite-with-react-quot-could-not-fetch/m-p/1279943#M372</guid>
      <dc:creator>KittyHurley</dc:creator>
      <dc:date>2023-04-18T21:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using calcite with React: "could not fetch component message bundle"</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/using-calcite-with-react-quot-could-not-fetch/m-p/1280508#M373</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/574219"&gt;@KittyHurley&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/14521"&gt;@LefterisKoumis&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a &lt;A href="https://codesandbox.io/s/distracted-julien-ol27tb?file=/src/App.js" target="_self"&gt;CodeSandbox&lt;/A&gt; of a barebones react-redux app attempting to use calcite components&lt;/P&gt;&lt;P&gt;It's getting that same "&lt;SPAN&gt;could not fetch component message bundle" error&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 21:21:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/using-calcite-with-react-quot-could-not-fetch/m-p/1280508#M373</guid>
      <dc:creator>sccwrp</dc:creator>
      <dc:date>2023-04-19T21:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using calcite with React: "could not fetch component message bundle"</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/using-calcite-with-react-quot-could-not-fetch/m-p/1281330#M377</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/499153"&gt;@sccwrp&lt;/a&gt;&amp;nbsp;It looks like the index.js's setAssetPath isn't set for the &lt;A href="https://developers.arcgis.com/calcite-design-system/get-started/#distribution" target="_blank" rel="noopener"&gt;distribution&lt;/A&gt; build.&lt;/P&gt;&lt;P&gt;An updated &lt;A href="https://codesandbox.io/s/cc-react-setassetpath-r1rkmo?file=/src/index.js" target="_blank" rel="noopener"&gt;CodeSandbox&lt;/A&gt; and example set on CDN, but local hosted assets could also be used:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;setAssetPath("https://js.arcgis.com/calcite-components/1.2.0/assets");&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 15:57:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/using-calcite-with-react-quot-could-not-fetch/m-p/1281330#M377</guid>
      <dc:creator>KittyHurley</dc:creator>
      <dc:date>2023-04-21T15:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using calcite with React: "could not fetch component message bundle"</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/using-calcite-with-react-quot-could-not-fetch/m-p/1282094#M380</link>
      <description>&lt;P&gt;I see, thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 20:34:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/using-calcite-with-react-quot-could-not-fetch/m-p/1282094#M380</guid>
      <dc:creator>sccwrp</dc:creator>
      <dc:date>2023-04-24T20:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using calcite with React: "could not fetch component message bundle"</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/using-calcite-with-react-quot-could-not-fetch/m-p/1315392#M462</link>
      <description>&lt;P&gt;I was getting this issue with angular. Just in case anyone else gets it I will post my solution as this is the first google hit. The cause is if you are using routing you need to set the path without the route&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; { setAssetPath } &lt;/SPAN&gt;&lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;'@esri/calcite-components/dist/components'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;setAssetPath(window.location.origin);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 04 Aug 2023 02:24:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/using-calcite-with-react-quot-could-not-fetch/m-p/1315392#M462</guid>
      <dc:creator>DavidWilton</dc:creator>
      <dc:date>2023-08-04T02:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using calcite with React: "could not fetch component message bundle"</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/using-calcite-with-react-quot-could-not-fetch/m-p/1385075#M597</link>
      <description>&lt;P&gt;Where are you placing these lines? In the router module?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 19:34:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/using-calcite-with-react-quot-could-not-fetch/m-p/1385075#M597</guid>
      <dc:creator>albert_ssp</dc:creator>
      <dc:date>2024-02-21T19:34:00Z</dc:date>
    </item>
  </channel>
</rss>

