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
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.
Opening from the client folder helped me as Robert suggested,
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.
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
manifest.json