Industrial
Industrial
Explore posts from servers
SSolidJS
Created by Industrial on 8/25/2024 in #support
Using WASM in Solid(Start)
Hi. I have a SolidStart app that I'm running with Bun and what I want to do is embed WASM code into my solid app. https://github.com/Industrial/skeleton-nodejs/blob/main/applications/solid-app/src/test.ts This is an example of loading the WASM code (Haskell) and running a function. When I try to add that code to the https://github.com/Industrial/skeleton-nodejs/blob/main/applications/solid-app/src/app.tsx then I get the error:
Error: Cannot find module @rollup/rollup-linux-x64-musl. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.
at requireWithFriendlyError (/run/media/tom/Data/Code/skeleton-nodejs/node_modules/vite/node_modules/rollup/dist/native.js:59:9)
at Object.<anonymous> (/run/media/tom/Data/Code/skeleton-nodejs/node_modules/vite/node_modules/rollup/dist/native.js:68:76)
...snip...
[cause]: Error: Dynamic loading not supported
at Module._extensions..node (node:internal/modules/cjs/loader:1614:18)
...snip...
code: 'ERR_DLOPEN_FAILED'
}
}
Error: Cannot find module @rollup/rollup-linux-x64-musl. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.
at requireWithFriendlyError (/run/media/tom/Data/Code/skeleton-nodejs/node_modules/vite/node_modules/rollup/dist/native.js:59:9)
at Object.<anonymous> (/run/media/tom/Data/Code/skeleton-nodejs/node_modules/vite/node_modules/rollup/dist/native.js:68:76)
...snip...
[cause]: Error: Dynamic loading not supported
at Module._extensions..node (node:internal/modules/cjs/loader:1614:18)
...snip...
code: 'ERR_DLOPEN_FAILED'
}
}
10 replies