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.