【发布时间】:2020-11-05 05:29:19
【问题描述】:
我刚刚安装了 Nativescript Angular 项目,使用:
ng new --collection=@nativescript/schematics my-mobile-app
我从nativescript-schematics得到的命令
在全新安装后,我尝试在 android 模拟器上运行它。
tns run android
然后我在编译过程中收到此错误:
Searching for devices...
Preparing project...
File change detected. Starting incremental webpack compilation...
webpack is watching the files…
Hash: c018afa003f9a5a7d1cd
Version: webpack 4.44.2
Time: 4451ms
Built at: 11/05/2020 1:54:33 PM
3 assets
Entrypoint bundle = runtime.js vendor.js bundle.js
[./app.css] 1.05 KiB {bundle} [built]
[./main.ts] 1.13 KiB {bundle} [built]
[~/package.json] external "~/package.json" 42 bytes {bundle} [optional] [built]
+ 331 hidden modules
ERROR in error TS5060: Option 'paths' cannot be used without specifying '--baseUrl' option.
【问题讨论】:
标签: angular webpack nativescript angular2-nativescript nativescript-angular