vite配置完 @ 引入路径后,ts检验会报错,请问一下怎么解决 #2226
-
Beta Was this translation helpful? Give feedback.
Answered by
OneMoreJack
Feb 25, 2021
Replies: 3 comments
-
配置 |
Beta Was this translation helpful? Give feedback.
0 replies
-
需要在 {
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": [ "src/*" ]
}
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lwm98
-
感谢两位大佬,已解决 @JackLiR8 @sodatea |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
需要在
tsconfig.json
里配置baseUrl
和paths