Path aliases fails to resolve "@/*" #55
-
Despite I have done everything correct. I am using plain solidjs with Typescript |
Beta Was this translation helpful? Give feedback.
Answered by
hngngn
Apr 2, 2024
Replies: 1 comment 2 replies
-
you need to update your path in {
"compilerOptions": {
"baseUrl": "./",
"paths": {
"@/*": ["./src/*"]
}
}
} and add this to your resolve: {
alias: {
"@": resolve(__dirname, "./src")
}
} you can read how to setup manual too. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
dinesh-hills
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you need to update your path in
tsconfig.json
to "@"and add this to your
vite.config.ts
you can read how to setup manual too.