Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

132
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda