项目设置alias后vscode点击路径没法跳转以及找不到文件引用等
1.解决方案
项目根目录添加一个jsconfig.json文件,内容如下:
{
"compilerOptions": {
"baseUrl": "./",
"paths": {
"@/*": [
"src/*"
]
}
},
"exclude": [
"node_modules",
"dist"
]
}
项目根目录添加一个jsconfig.json文件,内容如下:
{
"compilerOptions": {
"baseUrl": "./",
"paths": {
"@/*": [
"src/*"
]
}
},
"exclude": [
"node_modules",
"dist"
]
}
项目设置alias后vscode点击路径没法跳转以及找不到文件引用等
http://bravegougou.cn/archives/xiang-mu-she-zhi-alias-hou-vscode-dian-ji-lu-jing-mei-fa-tiao-zhuan-yi-ji-zhao-bu-dao-wen-jian-yin-yong-deng