-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
VSCode: auto import not working #13
Comments
Did you find any solution? It is annoying to write each import manually. |
I was able to do this by configuring the tsconfig.json inside the apps/web tsconfig, by setting these values:
With the settings above your import statements should resolve to the correct path alias:
or
|
@dhmoon91 if you the import to behave like that you need to edit your "paths": {
"@/*": ["./*"],
"@ui/*": ["../../packages/ui/*"],
- "@ui/components/*": ["../../packages/ui/components/ui/*"],
"@ui/components/ui/*": ["../../packages/ui/components/ui/*"]
} You should be able to import all your components. |
This should be fixed with the new release |
I am using 1.1.0. An the vscode autoimport is still not working for me. |
Hi @RudiPersson, could you please try this #17 (comment) |
@dan5py this fixed it for me :). Thanks for making this 👏 |
Hi - I was looking for way to easily integrate shdcn with turbo and ran by your repo.
Looks like auto import from vscode isn't working to reference the
@ui
.Also how would I import my own components under
components/
?eg:
How could I import
MyComp1.tsx
orMyComp2.tsx
? Looks likenextjs.json
for tsconfig is set to alias../../packages/ui/components/ui/*
The text was updated successfully, but these errors were encountered: