Select to view content in your preferred language

calcite module in offline environment

603
8
05-27-2025 08:33 AM
baohuachu7
Emerging Contributor

In offline environment how to set calcite module for the Exb dev version(v1.17)?

There  is no introcution on this topic in the official document.

0 Kudos
8 Replies
JunshanLiu
Esri Contributor

JunshanLiu_0-1748399641162.png

 

We'll update the doc in the coming release.

0 Kudos
baohuachu7
Emerging Contributor

Hi JunshanLiu,

       Follow the steps above, got the problem as below.

calciteErr1.png

calciteErr2.png

0 Kudos
Jian8003
New Contributor

Jian8003_0-1749091489481.png

Have you copied this folder to your web server? It seems there is no index.js (in your snapshot) file in the folder.

0 Kudos
baohuachu7
Emerging Contributor

yes, copied. There is no index.js file in this folder.

baohuachu7_0-1749092705992.png

 

0 Kudos
JunshanLiu
Esri Contributor

@baohuachu7 I guess you may use the wrong URL for the "calciteComponentsUrl".

There is a "calcite-components" folder in the "dist" folder, but the "calciteComponentsUrl" should point to the URL you deployed, which does not have the "index.js", but it should have the "calcite.esm.js"

0 Kudos
baohuachu7
Emerging Contributor

Hi @JunshanLiu  I think  the "calciteComponentsUrl" is right.  "calcite.esm.js" is linked.

 

baohuachu7_0-1749128051457.png

 

0 Kudos
Sujeet
by
New Contributor

@JunshanLiu  When we deploy calcite on IIS, we get a No 'Access-Control-Allow-Origin' header is present on the requested resource error when trying to create a new project. Any pointers on how we can get around this? 

0 Kudos
Junshan_Liu
Frequent Contributor

The server that hosts the Maps SDK or Calcite needs to support CORS, see https://developers.arcgis.com/experience-builder/guide/install-guide/#offline-install

0 Kudos