score:7
Chart.js version 3 is not compatible. Change it to ^2.9.4. The same problem as you and I have been solved.
score:0
I have a different setup so I'm not sure if the fix I used can apply here without additional tweaks, but since this is the best search engine match for this error, I'll share my results, maybe it'll help someone. There should be no need to stick with an older version of a library.
I'm using Webpack via Laravel Mix in Laravel 6 but my Mix package was very old, so the first thing I had to do was to update it to the current version (for Laravel 6 it's v5). After that I added the following .babelrc file:
{
"presets": [
[
"@babel/preset-env",
{
"debug": true,
"modules": false,
"forceAllTransforms": true,
"useBuiltIns": "usage",
"targets": "last 1 version, > 1%"
}
]
]
}
I also added the Babel polyfill package:
npm install -D @babel/polyfill
After that I can run npm run dev
without any errors.
The file and the command come from this article: https://fostermade.co/blog/laravel-mix-and-es2015-javascript
score:0
I had the same error. I've just updated babel dependencies, some others, and the error is disappeared. But after that, you have to update some of the chart properties (for ex. horizontalBar
to bar
and configured with indexAxis
option).
"@babel/core": "^7.15.8",
"@babel/preset-env": "^7.15.8",
"babel-core": "^7.0.0-bridge.0",
Source: stackoverflow.com
Related Query
- Chart.js Error: You may need an appropriate loader to handle this file type
- I am having this error in charts v3 chartjs-chart-treemap: fontColor does not exist in type 'ChartDataset<"treemap", TreemapDataPoint[]>
- How do I destroy/update Chart Data in this chart.js code example?
- Which type of chart is this in Chart.js?
- I'm trying to use chart.js in angular to create a simple bar chart but I'm getting an error as 'legend' type doesn't exist for options
- unable to pass data from views to js file having chart js codes, shows unexpected syntax error
- Is it possible with Chart js or which chart Library can provide this type of chart?
- Chart JS ShowChart()bar" is not a chart type error
- why i have this error Utils is not defined when i want create a chart from chart.js
- Why does nuxt give me this error with vue-chartjs?
- How do you hide the title of a chart tooltip?
- Chart.js: Dynamic Changing of Chart Type (Line to Bar as Example)
- Adding Chart.js line chart to Jinja2/Flask html page from JS file
- How to check chart type on Chart.js
- Chartjs not rendering chart and no error thrown
- How do you set pie chart colors in angular-chart.js
- How to add comma in this chart js
- Handle X-axis label position in chart js
- Extend bar chart on Chart JS 2 into a new type of Chart
- how to fix this error Array to string conversion in laravel and chartjs?
- Lift the bar up from the bottom in bar type chart
- Removing chart on click event produces 'removeHoverStyle' of null error
- error TS2322: Type 'string' is not assignable to type 'keyof ChartTypeRegistry'
- ERROR TypeError: "this.canvas is undefined" | Problem with creating a chart with angular and chart.js
- Change Angular js charts.js chart type dynamically
- [Vue warn]: You may have an infinite update loop in watcher with expression "chartData"
- Line chart doesn't work with type time chart.js
- How to determine chart type inside 'chart.js' pluginservice
- A chart Js error issue are occured in my Laravel other page?
- Calling external Chartjs chart from a javascript file into HTML in Flask
More Query from same tag
- How can I display different values on xAxes than on tooltip Chart.js V3
- Why don't my datasets show up on line graph using Chart.js?
- Using ChartJS to create a multiple grouped bar chart - see picture below
- How do I use NuGet to install ChartJS?
- No tooltips on Chart JS line graph
- How to import Chart.js chartjs-plugin-datalabels npm package into an Angular 7 project
- Is it possible to print a chart with vue-chartjs?
- How to format the left legend on chartjs
- displaying the output on chart.js using Django and HTML
- How to create pdf file in node js
- How to add the value for each label to pie legend
- ChartJS Line Chart - Points Connected out of order for Timeseries in Angular 6
- ChartJs (ver: 2.8.0): Custom tooltip does not hide if clicked (or mouse pointer is moved) outside the chart canvas area
- ChartJS charts not generating within tabs
- Angular Chart.js - Remove Moment.js as Dependency / Reduce Bundle Size
- Socket.io is not sending data to frontend as intended
- How to add vertical line in bar chart using chartJs and ng2-charts?
- Chart.js - generateLegend() call results in "undefined is not a function"
- Chart.js adding tooltip with cashflow
- Dynamic js chart display problems
- Changing grid color in radar chart
- Chart.js Bar Chart with a switch/radio button to group data / Troubleshooting bar color
- How can I reload data from chartjs after JSON file was modified in a HTTP POST
- how does this javascript recolor the doghnut?
- Chart JS no animation line chart
- ChartJs(Java) Can I remove only specific gridLines for a Linear Chart withouth removing the labels on xAxis?
- Chartjs Customize Scale Numbers
- Skip decimal points on y-axis in chartJS
- How to show Nested charts Radar chart within Doughnut Chart?
- How to set plural label values in chart.js