Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

127
Vistas
I have a problem with the Chart Js library with svelte when going to production

When trying to use Chart js in developer mode, the library works as expected, however when I go to production with svelte I notice that this library stops working completely and in the browser console I notice that the constructor that is responsible for creating the graph does not take it as it should, throwing the following logs:

Uncaught (in promise) TypeError: sm is not a constructor at w (index.svelte-f4bd6f82.js:87:83952)

Where reviewing the error code, it refers to the following code ==> new Chart()

and I don't know what configuration I should also make to prevent this from happening...

I would appreciate anyone with experience using npm run build or moving to production who can help me.

enter image description here

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda