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
I am getting the following error while using blurhash-to-css in the Next.js app router:
- error Error: ENOENT: no such file or directory, open '/.../.next/server/app/[lang]/[[...slug]]/blurhash_to_css_bg.wasm'
at Object.openSync (node:fs:592:3)
at Object.readFileSync (node:fs:460:35)
at eval (webpack-internal:///(rsc)/../../node_modules/blurhash-to-css/pkg/blurhash_to_css.js:181:65)
at (rsc)/../../node_modules/blurhash-to-css/pkg/blurhash_to_css.js (/.../.next/server/app/[lang]/[[...slug]]/page.js:1808:1)
at __webpack_require__ (/....next/server/webpack-runtime.js:33:43)
at eval (webpack-internal:///(rsc)/../../node_modules/blurhash-to-css/index.js:6:27)
Next.js tried to load blurhash_to_css_bg.wasm from the .next/server folder instead of the pkg folder of the module.
I am getting the following error while using blurhash-to-css in the Next.js app router:
Next.js tried to load blurhash_to_css_bg.wasm from the .next/server folder instead of the pkg folder of the module.
The blurhash-to-css code looks correct:
Therefore this looks like a Next.js Webpack bundling issue.
The text was updated successfully, but these errors were encountered: