迁移项目结构时找不到选择器=> 9

时间:2019-06-12 07:34:34

标签: nativescript angular2-nativescript

尝试迁移Angular 7应用程序的项目结构以启用NativeScript,如下所示: https://docs.nativescript.org/angular/code-sharing/migrating-a-web-project#migrating-project-structure

运行ng add @nativescript/schematics时,出现以下错误:

Failed to find selector => 9 in /apps/my-app/src/app/components/index.ts.

我的/apps/my-app/src/app/components/index.ts:

import { AppComponent } from './app.component';

export const APP_COMPONENTS: any[] = [
  AppComponent,
];

export * from './app.component';

该错误非常隐蔽,不确定我的index.ts的结构是否存在错误。

非常感谢您的帮助。谢谢!

0 个答案:

没有答案