0👍
Are you sure that const { data } = ...
is correct? axios.get
returns a Promise which resolves to { response: { data: {}}
not { data: {} }
- [Chartjs]-How to change the color of Chart.js points depending on the label
- [Chartjs]-Implementing a choropleth chart using chartjs-chart-geo plugin with react-chartjs-2
0👍
If you are using created or fetch or any, then you should wrap it up in if statement as:
if(process.client){
//your code to fetch data from the server.
}
I hope it solves out your problem too.
Source:stackexchange.com