Type Mode not accepting strings "x", "y" or "xy" #908
Unanswered
AnnabellBrocker
asked this question in
Q&A
Replies: 3 comments
-
@AnnabellBrocker I've encountered the exact same error, thank you so much for providing the interim solution until this gets fixed, it saved my bacon. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I've faced same error with following packages(versions). many thanks for providing interim solution.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
This is a typescript thing. You can define the mode separately: or typecast it |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have installed the following version:
When defining the mode for the zoom within the options for a Barchart of Chart.js, I receive the error:
Options:
However, you define a local type in advance via
type Mode = 'x' | 'y' | 'xy';
in the same file and usingmode: 'x' as Mode
I do not receive the error.Any ideas why this happens?
Beta Was this translation helpful? Give feedback.
All reactions