Skip to content

ReferenceError: webpackJsonp is not defined #4998

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Maksi1994 opened this issue Feb 25, 2017 · 9 comments
Closed

ReferenceError: webpackJsonp is not defined #4998

Maksi1994 opened this issue Feb 25, 2017 · 9 comments

Comments

@Maksi1994
Copy link

Maksi1994 commented Feb 25, 2017

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

@masaanli
Copy link

I have the same error!

@Maksi1994
Copy link
Author

my solution

<script type="text/javascript" src="/javascripts/inline.c36e4ea421785d053d7f.bundle.js" defer></script> <script type="text/javascript" src="/javascripts/vendor.7aa5613277cc5d97af42.bundle.js" defer></script> <script type="text/javascript" src="/javascripts/main.f40c5b60e8aad8074c2d.bundle.js" defer></script>

=)

@MortimerCat
Copy link

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

@avinashcodelabs
Copy link

I am also facing the same issue.

@MortimerCat
Copy link

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.

@mscahill
Copy link

mscahill commented Feb 28, 2017

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

@kipy-be
Copy link

kipy-be commented Mar 1, 2017

@mscahill's solution worked for me. Thank you

@shammelburg
Copy link

@mscahill Thank you!

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants