Cannot find module ‘@/views/factory/line/index.vue‘ or its corresponding type declarations.ts(2307)

1、扩展安装

安装插件:Path Intellisense插件

 

2、增加

Cannot find module ‘@/views/factory/line/index.vue‘ or its corresponding type declarations.ts(2307)_第1张图片

{
    "compilerOptions": {
        "target": "ES6",
        "module": "commonjs",
        "allowSyntheticDefaultImports": true,
        "baseUrl": "./",
        "paths": {
          "@/*": ["src/*"]
        }
    },
    "exclude": [
        "node_modules"
    ]
}

 

你可能感兴趣的:(Vue)