Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

232
Views
TypeError: no se pueden leer las propiedades de undefined (leyendo 'activeDataLabelStyle')

Tengo un gráfico de Highcharts en mi página de React y lo vuelvo a dibujar después de obtener datos al actualizar el gancho de estado. Esto funciona bien en el modo de desarrollo sin ningún problema.

Sin embargo, después de ejecutar npm build e iniciar la aplicación, aparece el error:

TypeError: no se pueden leer las propiedades de undefined (leyendo 'activeDataLabelStyle')

Si salgo de la página y vuelvo, el gráfico se actualiza sin ningún problema en la selección, pero aún arrojará un error si selecciono mostrar después de actualizar la página.

 const [options, setOptions] = useState({ title: { text: 'Speed of vehicle over time', }, subtitle: { text: 'Select an area on the chart to zoom in.', }, chart: { zoomType: 'x', }, series: [ { data: [], }, ], xAxis: { type: 'datetime', labels: { formatter: function () { return Highcharts.dateFormat('%H:%M', this.value); }, }, title: { text: 'Time', }, }, yAxis: { title: { text: 'Speed (m/s)', }, }, }); async function handleSelect(selected, setLoading) { const journey = await axios.get('/api/getJourney?id=' + selected.id); console.log(journey.data); setOptions({ series: [ { data: journey.data, name: 'Vehicle ' + selected.id, }, ], }); setLoading(false); }
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!