Ionic version:
[ ] 1.x
[ ] 2.x
[x] 3.x
I'm submitting a ...
[x] bug report
[ ] feature request
[ ] support request
Current behavior:
Just in case you don't know guys...
API docs are giving an Uncaught ReferenceError: webpackJsonp is not defined and the demo device is empty (black screen)
Expected behavior:
See the demo device content
Steps to reproduce:
Go to https://ionicframework.com/docs/api/components/modal/ModalController/ and check the device
Amazing job btw :heart:
Hello! Thank you for opening an issue with us!
I believe this has been fixed. Can you please verify. I will re-open if it is not working for you.
Thank you for using Ionic
Nope.
Runtime Error
webpackJsonp is not defined
Stack
ReferenceError: webpackJsonp is not defined
at http://localhost:8100/build/main.js:1:1
Ionic Framework: ^3.6.1
Ionic Native: 2.4.1
Ionic App Scripts: 2.1.4
Angular Core: 4.1.3
Angular Compiler CLI: 4.1.3
Node: 8.2.1
add to index.html before main.js
@barocsi - where are you seeing this? I checked the link above and it appears to be fine.
Just migrating my old ionic2 project so its resolved by updating the html, sorry.
barosci, how did you migrate your old project?
This is still an issue with android 4.4. It might be the same issue with ios 9. I see the white screen of death on android 4.4 and ios 9 with "webpackJsonp is not defined" error on android console.
@anjildhamala - can you post a link to your either your project's repo or if that is not possible (private repo for example) to a repo of a sample application that duplicates the issue?
yaa works .. for me..tq
Workaround does not work as ionic serve
overwrites index.html
without <script src="build/vendor.js"></script>
Update your src/index.html
, not builded one in www
folder.
@NecroMan k, that preserves vendor.js
, but now get:
Cannot find module "ionic-native"
This is launching browser via ionic serve
.
Might need to ionic cordova platform add browser
(blew away old install, migrating to latest Ionic + Angular5).
k, all set, needed to add cordova plugins -- thanks for the src/index.html
tip.
work for me too. Thanks
Hello guys,
I got this error "webpackjsonp is not defined" and get a blank screen with emulator Android 4.4, 5.0 and 5.1. Do you know why ?
Also on Android Lollipop, some users can run the app and others stay stucked on the splashscreen/blank screen.
Ionic Framework: 3.9.2
Ionic Native: 4.4.0
Ionic App Scripts: 3.1.7
Angular Core: 5.0.1
Angular Compiler CLI: 5.0.1
Node: 8.4.0
Hi , I am using Livereload and it is giving this issue . is already in my index.html file
I also get the error "Uncaught ReferenceError: webpackJsonp is not defined" on Android 4.4.4
Anyone how know how to fix this?
The best solution for this issue it to install/sync the version of @ionic/app-scripts
, I faced this issues multiple times when I updated my machine (for cordova, ionic, app-script versions).
This is my system config, ( notice app-script), when I updated to app-script to 3.1.9, everything fucking things got messed up, than I came back to 1.3.7
, and everything became awesome again. !!
still getting "webpackjsonp is not defined" error and white blank screen with Android 5.0
and is already in my index.html
@atheerahassan , same here. what's the deal with this? anyone knows?
@atheerahassan ,Same here. white screen problem on android 5.0
@Ramachandrajoshi @k00na tried the solutions they gave but still to no avail. does upgrading android version gets rid of this error, i wonder.
Yes on latest devices it is working fine. Not giving any error.
Fixed.
In my case route cause of the problem is:
we have modified some code on IonicImageLoader Plugin.
which we have written the code is in ES6 format.
so If anyone getting the same problem look into the error above that and fix those at first place.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Most helpful comment
add to index.html before main.js