-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Cli rc.0 fails to compile on interface property name change #5114
Comments
This happens with 1.0.0.beta32, too. |
Does this still happen? |
@filipesilva Yes this still happens. I just stumbled upon this weird error and googled this issue. |
I see there's a "need: more info" label, but the OP ( @ReneVallecillo ) pretty much posted everything there is to this. These are the versions I have installed: @angular/cli: 1.1.2
There is one thing however. I am lying. I didn't reproduce this with a clean new project, but I'm pretty sure that the environment around this particular problem I have is pretty close to it. I am only importing one Interface, from one file and then creating an object literal that has a type of the Interface I am changing. I have to stop the ng serve and run it again if I want to continue on with developing and it is pretty exhausting oftentimes because I didn't define all the interfaces upfront but I'm rather doing it incrementally. |
Related issue: #5404 |
@hansl it seems that changed interfaces are not being reflected in the TS program. |
see the similar issue in TypeStrong/ts-loader#156 |
Closing this as obsolete. |
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. |
OS?
Versions.
Repro steps.
1 . Have an exported model, say refund.
2. Use it on a component, and assign a value to the object with the corrects interface/class members.
3. Rename or add a member to the interface, update the assignment on the component.
4. The compiler will throw a error as if there is no property with the new name/.
The log given by the failure.
Mention any other details that might be useful.
This happens even if I reload page. Only after I stop and start the cli again, the error goes away
The text was updated successfully, but these errors were encountered: