configure typings for jimu-core

3417
13
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

13 Replies
KateMoore01
New Contributor

I am also having the exact same issue. It appears that this is an error that occurred when the ExperienceBuilder updated and needs to be addressed soon. 

saraswathiemani2
New Contributor III

Opening from the client folder helped me as Robert suggested,

0 Kudos
ahkim
by
New Contributor

The solution for this is documented under "Why does VS Code show errors in my custom widget?" https://developers.arcgis.com/experience-builder/guide/frequently-asked-questions/
Adding my project folder name to the `tsconfig.json > include` worked for me. 

ahkim_0-1675441050234.png

 

 

 

0 Kudos
SatyaPrakashNandy
New Contributor

For me, I had to add 'jimu-core' and its subsequent dependencies to my 'ts-config' file.

Additionally, I needed to include my widget folder in the 'ts-config' file.

Furthermore, I added the following line to the 'manifest.json' file: 'dependency': 'jimu-arcgis'.

tsconfig

SatyaPrakashNandy_0-1692074292296.png

manifest.json

SatyaPrakashNandy_2-1692074341666.png

 

 

 

 

0 Kudos