Open ExEr7um opened 1 month ago
Workaround: configure vite to use the @rollup/plugin-wasm
plugin:
npm install --save-dev @rollup/plugin-wasm
Then update your nuxt config to:
import wasm from "@rollup/plugin-wasm";
export default defineNuxtConfig({
// ....
vite: {
plugins: [wasm()],
},
});
When I'm trying to build my project on latest version of Vite build fails with error:
For me it started to happen when I upgraded some dependencies. I traced it to this upgrades:
Minimal reproduction
https://stackblitz.com/edit/nuxt-starter-syikls
You need to run
npm run build
in terminal.