在迁移的Angular应用中找不到入口模块

时间:2019-08-13 12:56:52

标签: angular webpack nativescript nativescript-angular

我尝试通过添加@nativescript/schematics(紧跟this guide之后)将Angular 7.0.3 Web应用程序迁移到NativeScript 6.0.3项目。

此后,我在ng serve上遇到了一些麻烦:必须摆脱filessrc/tsconfig.app.json数组中各项前面的'src /'并修复所有问题我的导入使用的是路径“ @ app /”到“ app /”。现在,它可以再次正确构建Web应用。

现在,我正在尝试tns run android,但出现一些Webpack错误和警告:

Searching for devices...
Preparing project...

webpack is watching the files…


Insufficient number of arguments or no entry found.
Alternatively, run 'webpack(-cli) --help' for usage info.

Hash: a1740daac85938c772ac
Version: webpack 4.8.3
Time: 60ms
Built at: 2019-08-13 14:42:39

WARNING in configuration
The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment.
You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/

ERROR in Entry module not found: Error: Can't resolve './src' in 'D:\work\transat_dev'
Executing webpack failed with exit code 0.

尤其是:ERROR in Entry module not found: Error: Can't resolve './src' in ...

关于什么可能导致此错误的任何想法?

0 个答案:

没有答案