"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?
请先登录再写评论。
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
enginedirectory as Resource root (note: not the subdirectory itself, but its parent dir!)Ok thank you for all this info!
I will test this