angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

ReferenceError: webpackJsonp is not defined

Open Maksi1994 opened this issue 9 years ago • 9 comments

OS?

Windows 10

Versions.

@angular/cli: 1.0.0-beta.32.3 node: 7.5.0 os: win32 x64 @angular/common: 2.4.8 @angular/compiler: 2.4.8 @angular/core: 2.4.8 @angular/forms: 2.4.8 @angular/http: 2.4.8 @angular/platform-browser: 2.4.8 @angular/platform-browser-dynamic: 2.4.8 @angular/router: 3.4.8 @angular/cli: 1.0.0-beta.32.3 @angular/compiler-cli: 2.4.8

I use commands ng build --prod or ng build --prod --aot for production my projects, after connected file in document index.html -> errors occur:

Uncaught ReferenceError: webpackJsonp is not defined at vendor.bundle.js:1

and

TypeError: Cannot read property 'call' of undefined at r (inline.fc1c1a5….bundle.js:1) at Object.585 (main.caf6b13….bundle.js:11) at r (inline.fc1c1a5….bundle.js:1) Previously everything worked fine... thank you in advance

Maksi1994 avatar Feb 25 '17 02:02 Maksi1994

I have the same error!

masaanli avatar Feb 25 '17 20:02 masaanli

my solution

=)

Maksi1994 avatar Feb 26 '17 03:02 Maksi1994

Problem still exists in CLI RC.0 I created a new project and this is the result of running ng build --prod

Uncaught ReferenceError: Invalid left-hand side expression in postfix operation
polyfills.9dab997….bundle.js:1 Uncaught ReferenceError: Invalid left-hand side expression in postfix operation
vendor.c95ab59….bundle.js:50 Uncaught ReferenceError: Invalid left-hand side in assignment
main.b18fc53….bundle.js:1 Uncaught ReferenceError: webpackJsonp is not defined
    at main.b18fc53….bundle.js:1

Running following versions.... angular/cli: 1.0.0-rc.0 node: 7.4.0 os: linux x64 @angular/common: 2.4.8 @angular/compiler: 2.4.8 @angular/core: 2.4.8 @angular/forms: 2.4.8 @angular/http: 2.4.8 @angular/platform-browser: 2.4.8 @angular/platform-browser-dynamic: 2.4.8 @angular/router: 3.4.8 @angular/cli: 1.0.0-rc.0 @angular/compiler-cli: 2.4.8

ghost avatar Feb 28 '17 16:02 ghost

I am also facing the same issue.

avinashcodelabs avatar Feb 28 '17 16:02 avinashcodelabs

I mysteriously started working again without doing anything! My guess is that a npm package has been updated within the last hour, and the npm update/install has loaded the fix.

ghost avatar Feb 28 '17 17:02 ghost

The problem was with [email protected]. Fresh installs will pull [email protected] which resolved the issue for me.

mscahill avatar Feb 28 '17 22:02 mscahill

@mscahill's solution worked for me. Thank you

kipy-be avatar Mar 01 '17 15:03 kipy-be

@mscahill Thank you!

shammelburg avatar Mar 02 '17 14:03 shammelburg

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.