报错:xx.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
Error: ./src/app/shared/Functions/xx.ts
Module build failed (from ./node_modules/@ngtools/webpack/src/index.js):
Error: src\app\shared\Functions\xx.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
at AngularCompilerPlugin.getCompiledFile (xx\node_modules\@ngtools\webpack\src\angular_compiler_plugin.js:951:23)
at xx\node_modules\@ngtools\webpack\src\loader.js:43:31
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
解决思路:在引用xx.ts的文件中,检查 import { xx } from ‘路径’ 这句的路径是否正确
本文档解决了一个关于TypeScript编译的问题,报错表明xx.ts文件未被正确包含在编译配置中。解决方案是检查引用xx.ts的import语句路径是否正确,并确保tsconfig.json文件通过'files'或'include'属性包含了该文件。
1312

被折叠的 条评论
为什么被折叠?



