-
Notifications
You must be signed in to change notification settings - Fork 12k
Universal Rendering - ReferenceError: webpackJsonp is not defined #7534
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
Comments
Hello I am also having same issue with my angular app. Is there any update on this issue? |
Hi guys I have submitted a change to the universal story in #7739 I invite you to take a look at it as I believe it better explains how to get your SSR app up and running with the cli |
After updating angular cli and angular to the latest version, I got rid of this error. |
Hi guys, Following are from my package.json file: Has this issue been resolved ? If yes, please help to solve this out. |
I am basically on the same boat as @rogerjacob: I have followed the updated instructions and can't start the server otherwise:
This is with basically the most recent set of available libraries:
|
I never got the example in this Universal story to work. This repository cli-universal-demo shows how to use webpack + angular cli to enable server side rendering. The later worked for me. |
Since server doesn't do anything with webpack, most likely cause of this is in
Adding this fixes the issue. |
Wow, thanks alot @sasxa! Somehow you have managed to pin down my exact mistake, no idea why I have somehow overlooked this everytime I got back to this ... |
Thank you @sasxa for pointing out the issue, however, when I add |
@cstodor: Could you run |
same issue! :( |
I solved this issue by update @angular and @nguniversal modules to 5.0 |
Same issue . |
Still issues with Universal Rendering: angular/angular-cli#7534 (comment)
same issue
|
Come across the same issue using angular4, do I have to upgrade to angular5? |
Thanks for reporting this issue. This issue was originally reported a long time ago and since then we've had many releases, one of which might have addressed this problem. Please update to the most recent Angular CLI version. If the problem persists after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Versions.
@angular/cli: 1.0.6
node: 7.0.0
os: darwin x64
@angular/animations: 4.3.6
@angular/common: 4.3.5
@angular/compiler: 4.3.5
@angular/core: 4.3.5
@angular/forms: 4.3.5
@angular/http: 4.3.5
@angular/platform-browser: 4.3.5
@angular/platform-browser-dynamic: 4.3.5
@angular/router: 4.3.5
@angular/cli: 1.0.6
@angular/compiler-cli: 4.3.5
Repro steps.
I built server side rendering support as in the story https://github.com/angular/angular-cli/wiki/stories-universal-rendering
I have a file server.js with the code
invoke
node server.js
The log given by the failure.
Desired functionality.
Should print out the content on index.html
Mention any other details that might be useful.
The text was updated successfully, but these errors were encountered: