0

使用此 npm install --global @nativescript/schematics 和 ng add @nativescript/schematics 将 nativescripts 添加到现有的 Angular 应用程序

在错误 TS6053 中遇到错误错误:找不到文件“C:[路径]/src/src/main.ts”。

错误 TS6053:找不到文件“C:[path]/src/src/polyfills.ts”。

然后我按照这个链接来解决它https://stackoverflow.com/a/58623108/14326477

但随后又出现了不同的错误,附上下面的屏幕截图

图片附在此处。构建时出错

./src/app/components/refund/refund.module.ts 中的错误模块构建失败(来自 ./node_modules/@ngtools/webpack/src/index.js):错误:C:\Users[path]\Client\ TypeScript 编译中缺少 src\app\components\refund\refund.module.ts。请通过 'files' 或 'include' 属性确保它在您的 tsconfig 中。在 AngularCompilerPlugin.getCompiledFile (C:\Users[path][\Client\node_modules@ngtools\webpack\src\angular_compiler_plugin.js:752:23) 在 plugin.done.then (C:\Users[path]\Client\node_modules @ngtools\webpack\src\loader.js:41:31) 在 process._tickCallback (internal/process/next_tick.js:68:7)

你们能帮忙吗?

4

0 回答 0