[Chartjs]-Error in created hook (Promise/async): "TypeError: Cannot read property 'position' of undefined"

0👍

Are you sure that const { data } = ... is correct? axios.get returns a Promise which resolves to { response: { data: {}} not { data: {} }

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.

Leave a comment