Error: Cannot find module "ionic-native" -it is installed


#1

​Error: Cannot find module "ionic-native"
I’ve tried everything relevant suggested in this forum - no go. ???
Thanks

at Object. (http://localhost:8100/build/main.js:73788:7)
at webpack_require (http://localhost:8100/build/main.js:20:30)
at Object. (http://localhost:8100/build/main.js:73549:73)
at webpack_require (http://localhost:8100/build/main.js:20:30)
at Object. (http://localhost:8100/build/main.js:110692:70)
at webpack_require (http://localhost:8100/build/main.js:20:30)
at http://localhost:8100/build/main.js:66:18
at http://localhost:8100/build/main.js:69:10

Ionic Framework: 3.4.2
Ionic App Scripts: 1.3.7
Angular Core: 4.1.3
Angular Compiler CLI: 4.1.3
Node: 6.10.2
OS Platform: Windows 10
Navigator Platform: Win32
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.104 Safari/537.36


#2

You should not have “ionic-native” installed at all, nor should you be attempting to import anything from it. That monolithic module is obsolete and replaced by various @ionic-native/plugin smaller ones.


#3

Aha! I paid for an Udemy course, “Ionic 2/ Ionic 3,” and as instructed, I copied the course’s src file to a http://ionicframework.com/getting-started/ project after already getting too many errors per the tutorial. Hence the “monolithic module” ionic-native issue -his file. I guess I’ll start over. Can you recommend a good and current course? Thanks for your help.


#4

I hope you can get your money back. I’m not much of one for courses. There is lots of free useful material in the Angular and Ionic docs.


#5

Thanks. Courses - I’m a right brainer and find the visuals and allegories helpful.