question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

webpackJsonp is not defined

See original GitHub issue

Bug Report or Feature Request (mark with an x)

- [x] bug report 
- [ ] feature request

Versions.

Output from: ng --version. @angular/cli: 1.4.6 node: 6.11.3 os: darwin x64 @angular/animations: 4.4.4 @angular/cdk: 2.0.0-beta.12 @angular/common: 4.4.4 @angular/compiler: 4.4.4 @angular/core: 4.4.4 @angular/forms: 4.4.4 @angular/http: 4.4.4 @angular/material: 2.0.0-beta.12 @angular/platform-browser: 4.4.4 @angular/platform-browser-dynamic: 4.4.4 @angular/router: 4.4.4 @angular/cli: 1.4.6 @angular/compiler-cli: 4.4.4 @angular/language-service: 4.4.4 @angular/service-worker: 1.0.0-beta.16 typescript: 2.3.4 macOS Sierra 10.12.6

Android Devices :

  • Samsung Galaxy S7 Edge, Android 7.0, Chrome 61.0.3163.98
  • Motorola Moto E4, Android 7.1.1, Chrome 61.0.3163.98
  • Pixel C, Android 8.0, Chrome 61.0.3163.98

Repro steps.

I have a webapp with a SW (generate by CLI), I build it with the “ng build --prod” command.

  • Open the webapp in Chrome on Android Device
  • Close Chrome
  • Repeat open (the webapp opened previously reload)/close Chrome few times, and the error happen

Important : I can’t reproduce it without a registered SW.

OR

  • Install app on Android Device
  • Repeat open/close the app few times, and the error happen

I can’t reproduce the error on my Mac.

The log given by the failure.

 Uncaught ReferenceError: webpackJsonp is not defined at sw-register.cddb6ecf3e30717910a9.bundle.js:1 

Desired functionality.

Webapp launch & display OK.

Mention any other details that might be useful.

I’ve already find this similar issue : https://github.com/angular/angular-cli/issues/4998 But my uglify version is 3.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:23 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
alapassetcommented, Nov 8, 2017

I have same issue only on IE 11

5reactions
oshingccommented, Nov 17, 2017

Same issue here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

webpackJsonp is not defined - Stack Overflow
Problem. I want to load my script however I meet some ReferenceError. Uncaught ReferenceError: webpackJsonp is not defined. I am loading vendor.
Read more >
Uncaught ReferenceError: webpackJsonp is not defined #5002
After packaging, the loading page will appear this situation: Uncaught ReferenceError: webpackJsonp is not defined at vendor.0d1ec0a758.js:1 ...
Read more >
ReferenceError webpackJsonp is not defined - PI Square
Hi Guys. I've been trying to build my own PIVision symbol using the new amCharts libraries, however, I'm running into a "webpackJsonp is...
Read more >
webpackJsonp is not defined at app.js:1 - Laracasts
As mentioned in the title, I'm getting "not defined" errors for JQuery and webpackJsonp (I'm assuming the JQuery one is from the lack...
Read more >
Uncaught Reference Error: webpackJsonp is not defined
... me the error of: Uncaught ReferenceError: webpackJsonp is not defined ** at PasswordResetConfirmation.ae348c2796b9dbab8ea3.6031825c531…
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found