Autocomplete path issue Yarn Workspaces Monorepo Webstorm 2023.2


When importing elements from parts of the project, the autocomplete suggests things like:


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": {
"*": [
"exclude": [


Our packages use CRA, and we manage everything with CRACO (for handling the jest tests).

Any input will be appreciated; thanks.



1 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?


Please sign in to leave a comment.