Click to Javascript function in a shared folder
I have a folder with shared components not in the root folder that links like this:
import {
RedButton
} from "modules/shared/buttons";
And in my jsconfig.json file:
{
"compilerOptions": {
"baseUrl": "./",
"jsx": "react",
"paths": {
"modules/*": ["app/modules/*"]
}
}
How do I setup the folder to command-click or control-click to get to the function?
Please sign in to leave a comment.
jsconfig.json is not currently supported, please follow https://youtrack.jetbrains.com/issue/WEB-30581 and https://youtrack.jetbrains.com/issue/WEB-36390
You can try a workaround from https://youtrack.jetbrains.com/issue/WEB-22717#focus=streamItem-27-1558931-0-0: create a file
config.js(you can use a different name) in your project root, define the path mappings there, like: