When I try to use the example code (or any other code to create charts) in angular 5 (Dartlang 2 stable) I always get this error:
EXCEPTION: TypeError: Cannot read property 'Chart' of undefined
I'm debugging the code, everything seems correct except the last line.
(Devtools screenshot)
I tried renaming the import (as prefix) and the problem persisted. ¿Any Idea?
When I try to use the example code (or any other code to create charts) in angular 5 (Dartlang 2 stable) I always get this error: EXCEPTION: TypeError: Cannot read property 'Chart' of undefined
I'm debugging the code, everything seems correct except the last line.
(Devtools screenshot)![issue_attachement](https://user-images.githubusercontent.com/3406424/46969075-3b754800-d0b5-11e8-8af9-26766017ae0c.PNG)
I tried renaming the import (as prefix) and the problem persisted. ¿Any Idea?
These are my dependencies:
And this is the code:
Cheers