This question is not a babylonjs question, however you are all very smart and i hope you can help me.
I have set it up by running npm install bignumber.js as well as
npm install @types/bignumber.js --save
then i added this script to my html file
then in my typescript files:
import BigNumber from “bignumber.js”;
Now this initially seems to work, as Visual studio Code recognizes it and tries to auto complete with it etc…
However when i try to run i get this error:
Unable to resolve bare specifier “bignumber.js”
So i have looked up this Unable to resolve bare specifier error and i dont fully understand. It seems that there is a error with the way i am importing the library. However i could not find any solutions to the problem. Here is the link to where i read that: Importing ES modules in browser does not work · Issue #7766 · openlayers/openlayers · GitHub
So i was wondering:
Any ideas how i can fix this so i could use bignumber.js? (Or know and other good library’s that can handle large floating point maths?)
Also it seems the playground is not working right now!