Error to te import NativeScriptModue


#1

/nativescript/cap2Groceries/node_modules/nativescript-angular/platform"’ has no exported member 'NativeScriptModule.

This error show me when import nativescriptmodule.


#2
  1. delete node_modules
  2. delete platforms
  3. tns add platform android or ios
  4. tns run android or ios

#3

@pap5508

I did exactly that and got he same error.

I find once you have the platform set up you can develop fine, however any time somethign needs to be updated you can spend a lot of item trying to get a workable setup and there have been issues with installing the platform before.

Lesson to take away if you have a stable plaform to develop on and aren’t in production make the most of it, don’t change or upgrade unless it strictly necessary, or you could be stuck.


#4

I changed from

import { NativeScriptModule } from "nativescript-angular/platform";

to

import { NativeScriptModule } from "nativescript-angular/nativescript.module";


#5

read this


No Exported Member 'Bindable'