-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Module parse failed: Unexpected token #10918
Comments
This is because you likely are using we pack 4 which does not support static properties, so you will need to update to webpack 5, or use the babel/preset-env config with the babel loader to transpile it |
Can you please share an example of doing it or an article? |
@abdullah-mylobby I had this issue with a different package (
Need to install |
Expected behavior
I expect no error when trying to import chartjs like this:
Current behavior
Instead, I got an error like this when I'm trying to:
this is the error that appears in my terminal
Reproducible sample
https://codepen.io/pen?template=BapRepQ
Optional extra steps/info to reproduce
No response
Possible solution
No response
Context
No response
chart.js version
v4.0.1
Browser name and version
No response
Link to your project
No response
The text was updated successfully, but these errors were encountered: