-
Notifications
You must be signed in to change notification settings - Fork 12k
Failure when _removeDecorators is called #5416
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
Can you run 'npm ls @ngtools/webpack' and post the output here? |
|
package.json
|
FYI - just updated to rc2 - same result. |
Looks like this is an issue with using symlinks. Context: DTO's are used to establish a common interface between a typescript front-end and backend. In order to ensure sync - they live in their own repository and are symlink'd into place. I deleted the symlink and just cp'd them into the web project -> executed ng build --prod and the errors dropped away. This is a diagnosis, not a fix. Note: ERROR in ../api/src/business/dtos/models.dto.ts |
Dupe of #5098 |
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: 6.9.1
os: darwin x64
@angular/common: 2.4.9
@angular/compiler: 2.4.9
@angular/core: 2.4.9
@angular/forms: 2.4.9
@angular/http: 2.4.9
@angular/platform-browser: 2.4.9
@angular/platform-browser-dynamic: 2.4.9
@angular/router: 3.4.0
@angular/cli: 1.0.0-rc.1
@angular/compiler-cli: 2.4.9
Repro steps.
ng build --prod
The log given by the failure.
I just updated to angular-cli 1.0.0-rc1 after following the upgrade instructions on the wiki.
When i run
ng serve
- the app behaves correctly.When i run
ng build
- the app behaves correctly.When I run
ng build --target=production --environment=prod
I get the following:
How do i get my app to compile correctly for production?
UPDATE 1:
Here's an example of one of the offending files. ColumnTypes.TEXT is a public value. As these are just decorators, they have no external dependencies. Again, this works fine for non production builds.
Where:
The text was updated successfully, but these errors were encountered: