Try adding this code to your vite.config.js
file:
import { defineConfig } from "vite";
export default defineConfig({
...
optimizeDeps: {
exclude: ['js-big-decimal']
}
});
then delete your node_modules
folder and reinstalled all your deps.
There’s an ongoing discussion on this issue on github vite github issue.