Skip to content

'You may need an appropriate loader to handle this file type' issue when upgrading from 2.9.4 to 3.1.1 #8953

Answered by jledentu
vamsigutta asked this question in Q&A
Discussion options

You must be logged in to vote

Mmh, it seems that chart.js/dist/chart.js contains object spread syntax ({ ...object }), that triggers the error. You can fix the error by including the chart.js lib in your /\.jsx?$/ rule, but I think there is an issue in Chart.js.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@vamsigutta
Comment options

@LeeLenaleee
Comment options

@vamsigutta
Comment options

Comment options

You must be logged in to vote
2 replies
@jledentu
Comment options

@vamsigutta
Comment options

Answer selected by vamsigutta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants