Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can i use baseUrl in components #48

Open
yanghoxom opened this issue May 4, 2020 · 4 comments
Open

how can i use baseUrl in components #48

yanghoxom opened this issue May 4, 2020 · 4 comments

Comments

@yanghoxom
Copy link

yanghoxom commented May 4, 2020

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/*"]
    }
  }
}
@F1LT3R
Copy link
Collaborator

F1LT3R commented May 6, 2020

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?

@yanghoxom
Copy link
Author

yanghoxom commented May 7, 2020

@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..

@F1LT3R
Copy link
Collaborator

F1LT3R commented May 7, 2020

Do you have other projects where jconfig.json works without it being in the root of the workspace?

@yanghoxom
Copy link
Author

@F1LT3R no, jsconfig.json seem not work with this template

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants