"Module is not installed" in structure project

I have in my project several package.json to be able to import relative paths:
{"name": "app"}
{"name": "engine"} ...

But when importing into a file, I have a warning like this: "Module is not installed" you can see the screenshot

do you know how to fix these problems?

Comment actions Permalink

This hack for specifying absolute paths (not officially documented anywhere, as far as I can tell) had never been supported by WebStorm. If you miss this feature, please follow WEB-23221 for updates. You can try creating a dummy webpack config like it's suggested in https://youtrack.jetbrains.com/issue/WEB-23221#focus=streamItem-27-2719626.0-0 and specifying a path to it in Settings | Languages & Frameworks | JavaScript | Webpack as a workaround.

Another workaround (if you aren't renaming paths, just making them shorter) is marking a parent folder of engine directory as Resource root (note: not the subdirectory itself, but its parent dir!)

Comment actions Permalink

Ok thank you for all this info!
I will test this


Please sign in to leave a comment.