vite alias can be used, but vetur suggest error #3439
Unanswered
franck-lynn
asked this question in
Q&A
Replies: 2 comments 1 reply
|
Alias is a special feature that is handled by Vite before it is used by the browser. Unless Vetur specifically supports Vite, but that will be a bit expensive. |
1 reply
|
The runtime alias and TS path alias need to match exactly. In {
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["packages/*"],
"data/*": ["data/*"]
}
}
}A couple of extra notes:
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
in vite,coniig.ts
when I import the data in index.vue,
it can work, but display an error:
The project is a lerna project.
package.json:
tsconfig.json:
All reactions