Autocomplete path issue Yarn Workspaces Monorepo Webstorm 2023.2
Hi!
When importing elements from parts of the project, the autocomplete suggests things like:
../../shared/consts
Whereas, since we have set the monorepo, the proper path is ```shared/consts```
Same happens for cross-package imports.
Instead of getting the needed ```common/components/modal```, we get ```../../../common/components/modal```
Here is our jsconfig.json:
{
"compilerOptions": {
"baseUrl": ".",
"moduleResolution": "node",
"paths": {
"*": [
"./packages/common/*",
"./packages/package-a/src/*",
"./packages/package-b/src/*"
]
}
},
"exclude": [
"node_modules"
]
}
Our packages use CRA, and we manage everything with CRACO (for handling the jest tests).
Any input will be appreciated; thanks.
Please sign in to leave a comment.
What is Use path aliases value in Settings | Editor | Code Style | JavaScript | Imports? Do you have a sample repo you can share that reproduces the issue?