为了账号安全,请及时绑定邮箱和手机立即绑定

vue3.0修改目录报错

老师您好,我新创建VUE3.0,将src改为examples时,报错了,不知如何处理,还麻烦帮看一眼。


error  in ./examples/main.ts


Syntax Error: Error: error while parsing tsconfig.json



ERROR in D:\Wonders\SprintBoot\JaxJava\demov3\tsconfig.json

./examples/main.ts D:\Wonders\SprintBoot\JaxJava\demov3\tsconfig.json

[tsl] ERROR

      TS18003: No inputs were found in config file 'tsconfig.json'. Specified 'include' paths were '["src/**/*.ts","src/**/*.tsx","src/**/*.vue","tests/**/*.ts","tests/**/*.tsx"]' and 'exclude' paths were '["node_modules"]'.


ERROR in ./examples/main.ts

Module build failed (from ./node_modules/ts-loader/index.js):

Error: error while parsing tsconfig.json

    at Object.loader (D:\Wonders\SprintBoot\JaxJava\demov3\node_modules\ts-loader\dist\index.js:17:18)


webpack compiled with 2 errors

ERROR in tsconfig.json

TS18003: No inputs were found in config file 'tsconfig.json'. Specified 'include' paths were '["src/**/*.ts","src/**/*.tsx","src/**/*.vue","tests/**/*.ts","tests/**/*.tsx"]' and 'exclude' paths were '["node_modules"]'.



tsconfig.json

{
  "compilerOptions": {
    "target": "es5",
    "module": "esnext",
    "strict": true,
    "jsx": "preserve",
    "importHelpers": true,
    "moduleResolution": "node",
    "skipLibCheck": true,
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "forceConsistentCasingInFileNames": true,
    "useDefineForClassFields": true,
    "sourceMap": true,
    "baseUrl": ".",
    "types": [
      "webpack-env"
    ],
    "paths": {
      "@/*": [
        "examples/*"
      ]
    },
    "lib": [
      "esnext",
      "dom",
      "dom.iterable",
      "scripthost"
    ]
  },
  "include": [
    "examples/**/*.ts",
    "examples/**/*.tsx",
    "examples/**/*.vue",
    "tests/**/*.ts",
    "tests/**/*.tsx"
  ],
  "exclude": [
    "node_modules"
  ]
}



正在回答

1 回答

是不是文件路劲写的不对啊?

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
玩转组件库搭建全流程
  • 参与学习       8198    人
  • 解答问题       41    个

本课程通过图文+视频的多元教学方式,带大家从零实现一个Vue的组件库。

进入课程

vue3.0修改目录报错

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信