Next.js Discord

Discord Forum

Chart for Next 15 + React 19

Answered
Cuban Crocodile posted this in #help-forum
Open in Discord
Cuban CrocodileOP
Hello guys can you give me charts that is compatible with that version? Recharts is not working on my application
Answered by joulev
"use client" is required for charting libraries
View full answer

7 Replies

@Cuban Crocodile Hello guys can you give me charts that is compatible with that version? Recharts is not working on my application
im using chartjs which works fine, but recharts should also work. what do you mean by "recharts is not working"?
Cuban CrocodileOP
it throw an error message like this

TypeError: Super expression must either be null or a function
this is my sample dashboard
this is my sample dashboardd
Answer
@joulev `"use client"` is required for charting libraries
Cuban CrocodileOP
thanksss i see "use client" directives, thanks man sorry im new at nextjs
no worries, you're welcome