Hello All,
I'm using VSCode to create custom widgets and can't see to get it to recognize the typings for the jimu packages. Getting warnings like:
Cannot find module 'jimu-core' or its corresponding type declarations.
Changing the client/tsconfig.json didn't seem to help. Webpack still builds OK but the type declaration warnings are hiding more significant problems.
Can someone please point me to how to get this properly configured?
Thanks!
--john
@Anonymous User
When in VS Code you need to open the client folder not any sub folder in the EB directories. That is the only way to get all the typings for VS Code to have intelisense.
@Anonymous User So did you go through the EB Developer installation/setup instruction (i.e. npm ci on the client and severs folders)?
https://developers.arcgis.com/experience-builder/guide/install-guide/
yes, standard installation, followed all the instructions in the install guide.
Did you include jimu-arcgis as a dependency in the manifest.json like so?
{
"name": "get-map-coordinates",
"type": "widget",
"version": "1.5.0",
// *** ADD ***
"dependency": "jimu-arcgis",
Link to the tutorial:
Thanks for the suggestion but this didn't seem to address the problem.
--john
Hi, VS code has some extensions that might help.
esri-loader Typing Helper and ArcGIS API for JavaScript Snippets
Thanks for the suggestion but I'm not using the esri-loader. Although it didn't help in this situation, appreciate the pointer to the "ArcGIS API for JavaScript Snippets" extension. I hadn't see that before.
--john
Hi John - I am experiencing a similar issue after upgrading to Experience Builder Version 1.8 (I was not getting errors on version 1.7).
Did you ever solve the issue?