-
Notifications
You must be signed in to change notification settings - Fork 12k
"ng build --prod" error #6020
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
To fix this I ran the following commands from the angular CLI install guide, I now get a clean prod aot build. Note: the section that I think fixed the issues was removing all modules so that they were refreshed, make sure that part runs correctly and that the files are not locked out etc. so you get a clean install.
To update Angular CLI to a new version, you must update both the global package and your project's local package. Global package:
Local project package:
|
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.0-rc.1
node: 7.7.2
os: win32 x64
@angular/animations: 4.0.2
@angular/common: 4.0.2
@angular/compiler: 4.0.2
@angular/compiler-cli: 4.0.2
@angular/core: 4.0.2
@angular/flex-layout: 2.0.0-beta.7
@angular/forms: 4.0.2
@angular/http: 4.0.2
@angular/material: 2.0.0-beta.2
@angular/platform-browser: 4.0.2
@angular/platform-browser-dynamic: 4.0.2
@angular/platform-server: 4.0.2
@angular/router: 4.0.2
@angular/cli: 1.0.0-rc.1
Repro steps.
When running the following build command for my project I get an error...
ng build --prod
The following build commands work...
ng build
ng build --prod --aot false
The log given by the failure.
ERROR in Illegal state: symbol without members expected, but got {"filePath":"D:/Projects/made-naturally/node_modules/@angular/platform-browser/platform-browser.d.ts","name":"platform_browser_private","members":["BROWSER_SANITIZATION_PROVIDERS"]}.
ERROR in ./src/main.ts
Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in 'D:\Projects\made-naturally\src'
@ ./src/main.ts 4:0-74
@ multi ./src/main.ts
Desired functionality.
Mention any other details that might be useful.
All the following build commands work...
ng build
ng build --prod --aot false
The text was updated successfully, but these errors were encountered: