-
Notifications
You must be signed in to change notification settings - Fork 12k
YESTERDAY'S RELEASE : Lot of error when build AOT #5620
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 could someone please explain this behaviour?
|
+1 [disabled]="OnDsNotSelected()" OnDsNotSelected(): boolean { Why i get this ? |
Is there a way to solve this error with angular 2.4? |
+1 Same error
|
Could all these errors be related to TypeScript version 2.2.1 ? |
User opened issue without bothering to fill in issue template, no repro or anything!!! WHAT A MESS |
@filipesilva please be nice. Your comment is in violation of our communication guidelines. @istiti @Thieus @alastair-todd @bogdvn @hassanasad can one of you please open a new issue following the instructions in the issue template? We need all the info we can get to reproduce and confirm this issue before we can quickly fix it. |
Declare a private variable in a Component and access it in the html. Then ng build with the --prod flag. Nothing complicated but fairly major. |
Issue is being tracked on this one #5623 |
If someone is looking to migrate a bigger codebase: I've https://gist.github.com/netmikey/cb29ac391953f2c67aa102b28fd4fe16 |
I have resolved it with Angular 2.4.10, Angular-CLI 1.0.0-rc.2, and TypeScript 2.1.6 |
+1 for 1.0.0 but i dont have it on 1.0.0-beta.23.3 |
@netmikey your script sounds like it has the potential to save me a lot of time, but it doesn't seem to be working for me. Are there any other workarounds for this issue? |
I am getting this error with @angular/cli v1.3.1 / Typescript 2.4.2 / @angular/core v4.3.5 ng build works. ng build --prod throws lots of errors like Do we need to reopen this issue? |
@oferns There is a changes was made with the angular cli from while ago. |
@wnabil Thanks for the response. Basically, dont make private anything that the view/html needs to see? How come it doesnt fail in dev mode? thanks |
@oferns as i understand before they was taking about this error will appear only when building the aot or the prod. generally just keep your variables public if you are using them inside the html. |
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. |
Before yesterday's release, I never get errors when building using
--prod
but today my projects doesn't compile cause of private/protected members used in template!!! WHAT A MESShttps://gist.github.com/istiti/5b8e8c9db15135681f605b98e5a8e4f1
Wonder why this never happends before? how can I now search/replace all private/protected members used in template to public !
it's maybe stupid enhancement but is it possible that cli convert all members to public when runnin ng build ? or add a command to overwrite these propertys to public directly in project?
N.B: relativly big project
cc @hansl @filipesilva @Brocco @IgorMinar
The text was updated successfully, but these errors were encountered: