Skip to content

SSR not working with ng - Webpack minification issue #14739

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
tacrawford91 opened this issue Jun 11, 2019 · 2 comments
Closed

SSR not working with ng - Webpack minification issue #14739

tacrawford91 opened this issue Jun 11, 2019 · 2 comments

Comments

@tacrawford91
Copy link

🐞 Bug report

Command (mark with an x)

- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [X ] config
- [ ] help
- [ ] version
- [ ] doc

Description

Reopen of Issue #10635
https://github.com/angular/angular-cli/issues/10635

The webpack minifaction step is causing an issue when building for production with SSR. The only workaround now is to set the mode in the webpack.server.config.js to none or set the minimize of the optimization option to false.

🔬 Minimal Reproduction

See Issue #10635
https://github.com/angular/angular-cli/issues/10635

🔥 Exception or Error

500 error

🌍 Your Environment




Angular CLI: 6.0.0
Node: 8.11.0
OS: darwin x64
Angular: 6.0.0
... animations, cli, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, platform-server, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.6.0
@angular-devkit/build-angular     0.6.0
@angular-devkit/build-optimizer   0.6.0
@angular-devkit/core              0.6.0
@angular-devkit/schematics        0.6.0
@ngtools/webpack                  6.0.0
@schematics/angular               0.6.0
@schematics/update                0.6.0
rxjs                              6.1.0
typescript                        2.7.2
webpack                           4.6.0

Anything else relevant?
webpack.server.config.js optimization minimize set to false
https://gist.github.com/johnzondr/3d4a361ffcfe89f7ee5199dcc13bf246

webpack.server.config.js mode set to none
https://github.com/snipcart/angular-seo-universal/blob/master/webpack.server.config.js

@alan-agius4
Copy link
Collaborator

Hi, thanks for opening the issue, however the above mentioned issue was closed as duplicate and not as resolved.

The original issue is still open #8616.

@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 9, 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

2 participants