如何解决TypeScript Visual Studio代码导入Intellisense不提供媒体文件时
当我尝试导入一些媒体文件时,我看不到任何文件来自动完成文件的完整路径。
我可以通过手动输入导入文件,虽然可以,但是自动完成功能不起作用。
我正在尝试修改tsconf.json,但没有生效:
{
"compilerOptions": {
"target": "esnext","module": "esnext","strict": true,"jsx": "preserve","importHelpers": true,"moduleResolution": "node","experimentalDecorators": true,"skipLibCheck": true,"esModuleInterop": true,"allowSyntheticDefaultImports": true,"sourceMap": true,"baseUrl": ".","types": [
"webpack-env","jest"
],"paths": {
"@/*": [
"src/*"
],"#/*": [
"src/old/*"
]
},"lib": [
"esnext","dom","dom.iterable","scripthost"
],// "allowJs": true,// "checkJs": true
},// "files": [
// "*.png",// "*.svg"
// ],"include": [
"src/types/assets.d.ts","src/old/static/*","src/**/*.js","*.svg","src/**/*.ts","src/**/*.tsx","src/**/*.vue","tests/**/*.ts","tests/**/*.tsx"
],"exclude": [
"node_modules"
]
}
让我们看一下屏幕截图: when i'm trying to import some media files,i can't see any files,to autocomplete
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。