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

131
Views
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
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!