-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
AOT compilation of animation callbacks #11707
Comments
Same problem here
|
…in the template parser Closes angular#11782 Closes angular#11601 Related angular#11707
…in the template parser Closes angular#11782 Closes angular#11601 Related angular#11707
…in the template parser Closes angular#11782 Closes angular#11601 Related angular#11707
…in the template parser Closes angular#11782 Closes angular#11601 Related angular#11707
…in the template parser Closes angular#11782 Closes angular#11601 Related angular#11707
…in the template parser Closes angular#11782 Closes angular#11601 Related angular#11707
…in the template parser Closes angular#11782 Closes angular#11601 Related angular#11707
…in the template parser Closes angular#11782 Closes angular#11601 Related angular#11707
…in the template parser Closes angular#11782 Closes angular#11601 Related angular#11707
…in the template parser Closes angular#11782 Closes angular#11601 Related angular#11707
…in the template parser Closes angular#11782 Closes angular#11601 Related angular#11707
…in the template parser (angular#11782) Closes angular#11782 Closes angular#11601 Related angular#11707
encountered the same issue here:
AOT output is:
AOE error is:
my package json dependencies are:
|
I figured it out, the main issue is with the tsconfig.json this version of tsconfig.json fails
this version of tsconfig-aot.json works:
now the question is what is in the default tsconfig file that would trigger this particular compilation error |
Since signature of registerAnimationOutput has changed, this issue is no longer observable on my side (angular 2.0.2).
|
Cool! It is also working for me on angular "2.0.2" |
Given that animation outputs are codegen'd in internally now, this should compile now. Please reopen the issue if it's still here. |
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. |
I'm submitting a ... (check one with "x")
Current behavior
I'm experiencing this issue since RC.6 I thought that final release may be better, but it's still there, so either I'm doing something wrong, or there's a bug nobody found. SO gave me no answers.
I have Component defined like this:
And template looking like this:
App works fine when using JIT compilation, and done callback is fired correctly, but when i try to compile it using ngc (v. 0.6.2) directly to ES5 (or compile ngFactories and then compile it with tsc) it results with an error:
It's because ngc generates ngFactory file with wrong number of parameters for AnimationOutput:
Expected behavior
Add 3rd arg to the ngc output or make 3rd arg of AnimationOutput optional.
Reproduction of the problem
Create component and view as described above, and try to compile it.
What is the motivation / use case for changing the behavior?
Can't compile it fully
Please tell us about your environment:
windows 10, ngc 0.6.2, typescript 2.0.2, angular-compiler 2.0.0
Angular version: 2.0.0
Browser: [all]
Language: [TypeScript 2.0.2]
Node (for AoT issues):
node --version
= 6.4.0The text was updated successfully, but these errors were encountered: