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
> app@0.1.0 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 ?
π 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: