Environment
Describe the bug
When I'm running tns debug android --no-hmr I get this error:
ERROR in Symbol ActionBarComponent declared in ./node_modules/@nativescript/angular/directives/action-bar.d.ts is not exported from @nativescript/angular/nativescript.module
Additional context
I'm trying to upgrade code-sharing project from NS 6 and Angular 8
I get the same error when building for iOS, also upgrading to NS 7 and Angular 10
I solved this by changing the import in app.module.tns.ts from:
import { NativeScriptModule } from 'nativescript-angular/nativescript.module';
to
import { NativeScriptModule } from "@nativescript/angular";
Thanks @lviss !
Most helpful comment
I solved this by changing the import in app.module.tns.ts from:
import { NativeScriptModule } from 'nativescript-angular/nativescript.module';to
import { NativeScriptModule } from "@nativescript/angular";