代码之家  ›  专栏  ›  技术社区  ›  Alex Bean

将nativescript添加到角度项目

  •  0
  • Alex Bean  · 技术社区  · 5 年前

    我正在尝试创建一个移动应用程序使用和现有的网络应用程序,我以前开发过。

    为此,我使用nativescript,因为它可以与使用代码共享结构的现有角度项目一起使用。

    遵循他们网站上的文档: https://docs.nativescript.org/angular/code-sharing/migrating-a-web-project

    我将Web项目转换为代码共享结构:

    ng add @nativescript/schematics
    

    但控制台有个错误:

    trustedSubscriber._addParentTeardownLogic is not a function
    

    当我在手机上运行时:

    tns run android --bundle
    

    tns run ios --bundle
    

    我收到一个错误(似乎没有将其检测为nativescript项目):

    No project found at or above '/Path/to/my/project' and neither was a --path specified.
    
    0 回复  |  直到 5 年前