vue3.0修改目錄報錯
老師您好,我新創(chuàng)建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" ??] }
2023-03-16
是不是文件路勁寫的不對???