-
Notifications
You must be signed in to change notification settings - Fork 12k
build on angular 5 with errors for production but developer mode works fine #8444
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
+1 On my project, In the production mode, all forms, made on the basis of FormControl FormGroup, don't working, without error, returning empty values. It is very shame to do not test the angular before publishing to the world! |
+1 with angular 5.2 - forms have empty values @monoflash, have you found a workaround? |
@gozzoo What version is your CLI? Just ran into this, updating to CLI 1.6.4 seemed to fix it. |
@monoflash yes for me too. thanks anyways. |
+1
|
+1 CLI 1.6.4 Same thing happen before in #5620 ? |
+1
*** Found out my error was related to RxJS 5.5 and higher with Kendo-ui for angular |
Same thing for me. No error while in dev mod, but when i try to build i got a lot of errors that were not raised before. |
I found out that there are extra tests during the prod build. I just started compiling more often. but here is more details about what worked for me. https://stackoverflow.com/questions/50337954/angular-5-ng-build-shows-no-errors-ng-build-prod-has-many-errors |
+1 here, angular 7 and angular 2. |
+1 as well (angular 5). |
We've had a couple of problems with production bundles and optimization in the past, but it's hard to know what's going on from the reports here. The problems that you are experiencing might very well be fixed in the latest CLI versions. You can get more details about the exact line where the problem comes up by adding in sourcemaps to your projection builds too. If you're still having problems on production builds only, can you open a new issue and setup a minimal repro please? You can read here why this is needed. A good way to make a minimal repro is to create a new app via |
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.5.0
Node: 8.9.1
OS: win32 x64
Angular: 5.0.1
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
angular/cli: 1.5.0
angular-devkit/build-optimizer: 0.0.32
angular-devkit/core: 0.0.20
angular-devkit/schematics: 0.0.35
ngtools/json-schema: 1.1.0
ngtools/webpack: 1.8.0
schematics/angular: 0.1.2
typescript: 2.4.2
webpack: 3.8.1
Repro steps.
https://github.com/Widrogo/cakephp3-angular5
The project is quite new I just put a template, change what is necessary to use it with angular 5 and with ng serve me it runs without any error.
When I made the build for production it generates errors, it is because I use a modified modernizr script cakephp3-angular5/src/assets/js/modernizr.custom.32033.js it is just declared on angular-cli.json
I'm sure that the build causes problems because this is the only file that I handle html5 and debugging is the error here when I run the build.
For build test with different commands:
ng build --prod
ng build --prod --aot
ng build --prod --aot
ng build --prod --aot --base-href ./
And test the app with this:
ng serve --prod
give the same error that build for produccion
The log given by the failure.
Desired functionality.
I just want the build to work or production mode where it fails
Mention any other details that might be useful.
I'm using a modernzr modefied
https://stackoverflow.com/questions/47226546/modernizr-with-the-build-on-angular-5
The text was updated successfully, but these errors were encountered: