I'm developing an application using Cordova + Ionic + Angular, however I have the following problem. Suddenly I started giving the following error in Chrome:
Uncaught TypeError: Object (...) is not a function at Object. (ngx-echarts.js: 162) at webpack_require (bootstrap cc523015242fafcdd7ed: 54) at Object.650 (main.ts: 7) at webpack_require (bootstrap cc523015242fafcdd7ed: 54) at Object.645 (main.js: 2673) at webpack_require (bootstrap cc523015242fafcdd7ed: 54) at webpackJsonpCallback (bootstrap cc523015242fafcdd7ed: 25) at main.js: 1
In SAFARI the same error is displayed as follows:
Byinspectingthebrowserelement,younoticethatthiserrorisinthefilengx-echarts.jsline162.Thisfileispartofagraphicsplugin,the ngx-echarts . The build on the Android platform is working perfectly, however this problem is happening IOS. Because it causes a compile error, I can not even install the app on the device.
These are my settings:
- Ionic Framework: ^ 3.7.0
- Ionic Native: ^ 2.9.0
- Ionic App Scripts: 3.1.9
- Angular Core: ^ 4.4.3
- Angular Compiler CLI: ^ 4.4.3 Node: 8.9.3 OS
- Platform: macOS High Sierra Navigator
- Platform: MacIntel
- User Agent: Mozilla / 5.0 (iPhone; CPU iPhone OS 10_3 like Mac OS X) AppleWebKit / 602.1.50 (KHTML, like Gecko) CriOS / 56.0.2924.75 Mobile / 14E5239e Safari / 602.1
Has anyone ever had this problem? Do you know if this is a bug or something like that? How can I be solving?