configure typings for jimu-core

616
8
07-24-2021 11:29 AM
by Anonymous User
Not applicable

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

0 Kudos
8 Replies
RobertScheitlin__GISP
MVP Esteemed Contributor

@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.

by Anonymous User
Not applicable

Thanks for your reply Robert.  I appreciate your suggestion but that doesn't seem to work for me (see screenshot)

 

 

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

@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/

 

0 Kudos
by Anonymous User
Not applicable

yes, standard installation, followed all the instructions in the install  guide.

0 Kudos
RyanDickinson1
New Contributor III

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:

Get map coordinates | ArcGIS Experience Builder

0 Kudos
by Anonymous User
Not applicable

Thanks for the suggestion but this didn't seem to address the problem.

--john

0 Kudos
JessicaRamirez1
New Contributor II

Hi, VS code has some extensions that might help.

esri-loader Typing Helper and ArcGIS API for JavaScript Snippets

0 Kudos
by Anonymous User
Not applicable

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

0 Kudos