Parece que no puedo corregir este error que solo ocurre después de haberlo implementado y me está volviendo loco. Probé todo, desde todas las demás sugerencias de desbordamiento de pila, sin suerte. No recibo errores en local, sin embargo, cuando implemento en Heroku, aparece el error "Error: "line" no es un controlador registrado". ¿Algunas ideas?
import React, { useState } from 'react'; import { Chart as ChartJS, CategoryScale, LinearScale, BarElement, Title, Tooltip, Legend, PointElement, LineElement, } from 'chart.js'; ChartJS.register( CategoryScale, LinearScale, BarElement, PointElement, LineElement, Title, Tooltip, Legend, ); import { Chart } from 'react-chartjs-2'; const staticData = [ { type: 'line', label: 'Macleay Island Avg', backgroundColor: '#38A169', borderColor: '#38A169', order: 1 }, { type: 'bar', label: 'Macleay Island Total', backgroundColor: '#C6F6D5', order: 3 }, { type: 'line', label: 'Russell Island Avg', backgroundColor: '#F56565', borderColor: '#F56565', order: 2 }, { type: 'bar', label: 'Russell Island Total', backgroundColor: '#FED7D7', borderColor: 'rgb(14, 142, 205)', order: 4 } ] return ( <> <Chart type='bar' data={graphData} /> </> )Necesitas importar y registrar el LineController