For Workes & Pages, what is the name of the domain?
ear-training.pages.dev
What is the error message?
19:15:41.769 Executing user command: npm run build 19:15:42.309 19:15:42.310 > [email protected] build 19:15:42.310 > cd wasm && wasm-pack build --target web && cd … && tsc && vite build 19:15:42.310 19:15:42.318 sh: 1: wasm-pack: not found 19:15:42.327 Failed: Error while executing user command. Exited with error code: 127 19:15:42.338 Failed: build command exited with code: 1 19:15:43.414 Failed: error occurred while running build command
What is the issue or error you’re encountering
Cloudflare Pages app that relies on wasm fails to build
What steps have you taken to resolve the issue?
Is wasm just not supported in Cloudflare Pages? I see this example repo that shows wasm being used in Pages Functions (GitHub - cloudflare/pages-fns-with-wasm-demo), but I don’t need Functions or Workers (this app runs entirely in the user’s browser). Should I just pre-build my wasm package and check it into my git repo rather than asking Cloudflare Pages to build it from source?
What are the steps to reproduce the issue?
- Create a Cloudflare Pages app whose build step requires running
wasm-pack build
- Trigger a deployment