You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building using v0.13.0 vs. v0.12.1, our existing NextJS/wasm-pack build process will break within CI with an opaque error message.
Run npm run build
>[email protected] build
> next build
▲ Next.js 14.2.4
Linting and checking validity of types ...
Creating an optimized production build ...
created symlink /runner/_work/app/app/.next/server/static -> /runner/_work/app/app/.next/server/chunks/static
created symlink /runner/_work/app/app/.next/static -> /runner/_work/app/app/.next/server/static
Failed to compile.
Error: ENOENT: no such file or directory, mkdir '/runner/_work/app/app/.next/static/media'
🤔 Expected Behavior
It should continue to work?
👟 Steps to reproduce
Use a package.json that looks like this, then try to use an NPM package build with wasm-pack 0.13.0 with this:
{
"compilerOptions": {
"target": "ES2022",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"sourceMap": true,
"noUnusedLocals": true /* Report errors on unused locals. */,
"noUnusedParameters": true /* Report errors on unused parameters. */,
"noImplicitReturns": true /* Report error when not all code paths in function return a value. */,
"noFallthroughCasesInSwitch": true /* Report errors for fallthrough cases in switch statement. */,
"paths": {
"@src/*": ["./src/*"],
"@/*": ["./*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}
🌍 Your environment
Include the relevant details of your environment.
wasm-pack version: 0.13.0
rustc version: rustc 1.79.0-nightly (385fa9d84 2024-04-04)
npm version: 18.17.0
The text was updated successfully, but these errors were encountered:
can confirm this change is causing some issues on our end (the change of declared module type), is there a way to select the type of the output package ?
Using
[`wasm-bindgen-rayon`](https://github.com/RReverser/wasm-bindgen-rayon/),
we can render with the global Rayon thread pool (instead of hand-rolling
a tile-based renderer). This is significantly faster!
Unfortunately, as part of the Web Ecosystem™, everything is janky and
fragile. The code includes workarounds for the following issues:
- rustwasm/wasm-pack#1402 (`wasm-pack` changed
things, breaking Webpack)
- rustwasm/wasm-bindgen#4233 (`wasm-bindgen`
fixed what they believe to be a bug, breaking `wasm-bindgen-rayon` in
the process)
Uh oh!
There was an error while loading. Please reload this page.
🐛 Bug description
When building using
v0.13.0
vs.v0.12.1
, our existing NextJS/wasm-pack build process will break within CI with an opaque error message.🤔 Expected Behavior
It should continue to work?
👟 Steps to reproduce
Use a
package.json
that looks like this, then try to use an NPM package build withwasm-pack 0.13.0
with this:package.json
tsconfig.json
🌍 Your environment
Include the relevant details of your environment.
wasm-pack version:
0.13.0
rustc version:
rustc 1.79.0-nightly (385fa9d84 2024-04-04)
npm version:
18.17.0
The text was updated successfully, but these errors were encountered: