Chartjs-Can't get Remix.run and Chart.js to work together, what am I doing wrong?

0👍

Here’s a sample using Chart.js with Remix.

https://stackblitz.com/edit/remix-run-remix-dbe16z?file=README.md

Since Remix renders your components on the server as well as the client, some React components are not SSR-friendly. They may try to access the window object, for example.

We wrap the chart components inside the <ClientOnly> component from remix-utils.

enter image description here

Leave a comment