我正在尝试使用 new 将 Angular 应用程序迁移到带有 Nativescript 的共享代码库@nativescript/schematics,但是,在构建应用程序的移动版本时,我在导入我的 Angular 库时遇到了问题。我使用 angular-cli 创建了库 ( ng generate library)。
对于 web 版本,我所要做的就是单独构建库ng build library-name,然后允许我将它导入到主应用程序中。
如何构建可以在运行时导入主应用程序的库的移动版本tns run ios --bundle?我已经使用适当的 *.tns 文件迁移了库的组件和模块。
任何帮助表示赞赏