Ngx-charts: Material beta 12 incompatibility - Unable to resolve animation metadata node #undefined

Created on 20 Oct 2017  路  5Comments  路  Source: swimlane/ngx-charts

CURRENT VERSIONS

"@angular/animations": "4.4.6",
"@angular/cdk": "2.0.0-beta.12",
"@angular/material": "2.0.0-beta.12",

Updated to material beta 12
Throws this error
Error: Unable to resolve animation metadata node #undefined

ngx-charts-error

Need More Info Needs Demo

Most helpful comment

I had this error and I change the definitions of the animation functions and worked fine.

`/*BEFORE */
export function moveIn(){
return trigger('moveIn',[
state('void',style({position:'fixed',width:'100%'})),
state('
' ,style({position:'fixed', width:'100%'})),
transition(':enter',[
style({opacity:'0',transform:'translateX(100%'}),
animate('.6s ease-in-out',style({opacity:'1',transform:'translateX(0)'}))
]),
transition(':leave',[
style({opacity:'1',transform:'translateX(-100%'}),
animate('.6s ease-in-out',style({opacity:'0',transform:'translateX(-200px)'}))
]),
])
}

/* AFTER */
export let moveIn = trigger('moveIn',[
state('void',style({position:'fixed',width:'100%'})),
state('
' ,style({position:'fixed', width:'100%'})),
transition(':enter',[
style({opacity:'0',transform:'translateX(100%'}),
animate('.6s ease-in-out',style({opacity:'1',transform:'translateX(0)'}))
]),
transition(':leave',[
style({opacity:'1',transform:'translateX(-100%'}),
animate('.6s ease-in-out',style({opacity:'0',transform:'translateX(-200px)'}))
]),

]);`

All 5 comments

Is this caused by ngx-charts?

i'm getting same error

Did you ever get to the bottom of this?

I had this error and I change the definitions of the animation functions and worked fine.

`/*BEFORE */
export function moveIn(){
return trigger('moveIn',[
state('void',style({position:'fixed',width:'100%'})),
state('
' ,style({position:'fixed', width:'100%'})),
transition(':enter',[
style({opacity:'0',transform:'translateX(100%'}),
animate('.6s ease-in-out',style({opacity:'1',transform:'translateX(0)'}))
]),
transition(':leave',[
style({opacity:'1',transform:'translateX(-100%'}),
animate('.6s ease-in-out',style({opacity:'0',transform:'translateX(-200px)'}))
]),
])
}

/* AFTER */
export let moveIn = trigger('moveIn',[
state('void',style({position:'fixed',width:'100%'})),
state('
' ,style({position:'fixed', width:'100%'})),
transition(':enter',[
style({opacity:'0',transform:'translateX(100%'}),
animate('.6s ease-in-out',style({opacity:'1',transform:'translateX(0)'}))
]),
transition(':leave',[
style({opacity:'1',transform:'translateX(-100%'}),
animate('.6s ease-in-out',style({opacity:'0',transform:'translateX(-200px)'}))
]),

]);`

Closing this. If anyone still has this issue, please open a new ticket with a stackblitz where it can be reproduced.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

achimha picture achimha  路  3Comments

lokeshdaiya picture lokeshdaiya  路  3Comments

ianfdk picture ianfdk  路  3Comments

workfel picture workfel  路  3Comments

stephanrauh picture stephanrauh  路  4Comments