-
Notifications
You must be signed in to change notification settings - Fork 12k
SSR not working with ng #10635
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
I saw a couple of other issues but they seem tied to 1.7 where 1.7 was working fine for me. #8616 |
SSR is not working with CLI 6 you'll run into a StaticInjectorError, until they fix you you could downgrade the CLI (npm install @angular/[email protected] ) |
that is what I figured. just wanted to make sure there was a clear easy repro. 1.7 still works fine but bundles will be a bit bigger with rxjs6 and no webpack 4 |
@deebloo is it also about
|
Heya, I think this is a duplicate of #8616, or at least the same root cause. It hasn't been addressed yet. I will bump it's priority. |
cool deal thanks @filipesilva |
Thank you so much @filipesilva let's hope it gets fixed soon. |
I did solve this issue changing my Hope it helps
|
For me works just copy webpack.server.config.js from https://angular.io/guide/universal |
Hey guys, Similar to what @paulogr said, this error occurred for me when webpack minimizes the file (production mode). By turning minimization off, the 500 error no longer occurs. My webpack config: |
I copy webpack.server.config.js from https://angular.io/guide/universal , Still have problems. |
@HeMinzhang that configuration is working because it is forcing webpack's |
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. |
Versions
Repro steps
./build.sh
node dist/server
Observed behavior
A 500 errors occurs
Desired behavior
App is served correctly
Mention any other details that might be useful (optional)
This works fine with Angular 6 and Angular CLI 1.7 but fails with Angular 6 and Angular CLI 6.
The text was updated successfully, but these errors were encountered: