-
Notifications
You must be signed in to change notification settings - Fork 12k
[Regression] aot compilation breaks enums from other files #13136
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
If setting build optimizer to false results in the same error then this does not appear to be related to build optimizer. Can you change the title to reflect that please? The issue appears to be caused by AOT compilation and the use of the Also, a minimal reproduction based on a new project is extremely helpful to properly troubleshoot issues such as these. |
Thank you for reporting this issue. This issue is now obsolete due to changes in the recent releases. Please update to the most recent Angular CLI version. If the problem persists after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior. |
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
)Command (mark with an
x
)Versions
Node Version: v10.8.0
npm version: 6.4.1
ng version:
Os: MacOSX Mojave
Repro steps
Use enum inside a file like this:
Import the enum like this:
Then run:
ng build --prod
The issue seems to be related to #10655 but this time setting buildOptimzier and optimisation in angular.json to false does not resolve the issue.
Turning off Ahead of Time compilation seems to help for now.
The log given by the failure
Desired functionality
That it finds the Enums.
The text was updated successfully, but these errors were encountered: