It’s my first project with Ionic 5. My Problem. I get sometimes this Error:
Sometimes i get "webpackJsonp is not defined"
And i’m not sure why. I just programmed some jQuery-Stuff, it worked, but now i get this strange error. Somebody know a solution?
ionic --version: 5.4.16
Ionic CLI : 5.4.16 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.9
@ionic/app-scripts : 3.2.4
Cordova CLI : 10.0.0
Cordova Platforms : android 9.0.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 4 other plugins)
cordova-res : not installed
native-run : 1.3.0
Android SDK Tools : 26.1.1 (/home/MyName/apps/Android-SDK)
NodeJS : v10.19.0 (/usr/bin/node)
npm : 6.14.4
OS : Linux 5.8
Not really. Remember, the CLI and framework have totally separate version tracks. The version of the CLI that spawned a particular project isn’t particularly meaningful. What matters is this:
You don’t want to be creating new projects with
ionic-angular. Start over with
--type=angular instead, and you should see something more like:
I would also recommend bumping your node.js up to the latest LTS. Install nvm to manage your node ecosystem without needing any superuser privileges.
Finally, do everything in your power to stick with Angular, instead of mashing up frameworks by adding things like jQuery. It’s not impossible, but is really just asking for trouble that you don’t need, especially when starting out.