Cannot find declaration

I do have "dva" installed. How can i get import completion?

This is a TypeScript project and webstorm version is  2019.3.

 

4 comments
Comment actions Permalink

Import via module name works as expected.

0
Comment actions Permalink

Do you have it installed globally, or locally in the project? Why do you try to import it using absolute path instead of using module ID as it has to be done with packages installed in node_modules?

0
Comment actions Permalink

Its installed locally and has "typings" property in its package.json file.

 

These codes are generated by build tools dynamically maybe for compatibility reasons, so i can't modify them as they are regenerated whenever i change my code.

 

I have tried `tsc --traceResolution` and there is no problem with result.

 

0
Comment actions Permalink

Using 'dva` instead of full absolute path is the only way to go, such paths in import/require are  not supported

0

Please sign in to leave a comment.