Select to view content in your preferred language

Fail to load map and custom widget

737
1
Jump to solution
08-12-2024 10:20 AM
WalaZargouni
Emerging Contributor

Hello, i'm having a problem with my custom widget failing to load 80% of the time, i have to keep refreshing the page until the map and widget loads correctly. It shows the message fail to load on the widget and Creating map failed on the map.

I have plenty of errors in the console when this happens, you can find a screenshot of the console state.

WalaZargouni_0-1723483204663.png

 

0 Kudos
1 Solution

Accepted Solutions
Junshan_Liu
Frequent Contributor

I guess you import some maps SDK modules in the widget like this "import {} from 'esri/...'". If this is the case, please add the  "dependency": "jimu-arcgis" in your widget manifest.

View solution in original post

0 Kudos
1 Reply
Junshan_Liu
Frequent Contributor

I guess you import some maps SDK modules in the widget like this "import {} from 'esri/...'". If this is the case, please add the  "dependency": "jimu-arcgis" in your widget manifest.

0 Kudos