react-workspaces-playground
react-workspaces-playground copied to clipboard
how can i use baseUrl in components
I have added jsconfig.json
But it doesn't seem to work
packages/components/jsconfig.json
run with command: yarn start:app-ant-design
@F1LT3R can you help me ?
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"modules/*": ["src/modules/*"],
"graphql/*": ["src/graphql/*"]
}
}
}
I thought jsconfig.json only worked in the root of your workspace. Is this wrong?
I'm not 100% sure how you're trying to use this. Can you add more context?
@F1LT3R
in packages/components
I want to use baseUrl so I can use absolute path
but when i put jsconfig.json to packages/components. it not work. always get message
undefine xxx from import..
Do you have other projects where jconfig.json works without it being in the root of the workspace?
@F1LT3R no, jsconfig.json seem not work with this template