Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No serializer registered for CommonJsRequireDependency #193

Open
magnusriga opened this issue Aug 21, 2024 · 0 comments
Open

No serializer registered for CommonJsRequireDependency #193

magnusriga opened this issue Aug 21, 2024 · 0 comments

Comments

@magnusriga
Copy link

magnusriga commented Aug 21, 2024

I am using the following setup, which works when building, but fails runtime with the following warning and error:

Initial Warning:

<w> [webpack.cache.PackFileCacheStrategy] Skipped not serializable cache item 'Compilation/modules|javascript/dynamic|/home/.../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/build/webpack/loaders/next-flight-loader/index.js!/home/.../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[16].oneOf[3].use[0]!/home/.../node_modules/.pnpm/[email protected]/node_modules/pino/pino.js|rsc': No serializer registered for CommonJsRequireDependency
<w> while serializing webpack/lib/cache/PackFileCacheStrategy.PackContentItems -> webpack/lib/NormalModule -> Array { 24 items } -> CommonJsRequireDependency
<w> [webpack.cache.PackFileCacheStrategy] Skipped not serializable cache item 'Compilation/modules|javascript/dynamic|/home/.../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/build/webpack/loaders/next-flight-loader/index.js!/home/.../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[16].oneOf[3].use[0]!/home/.../node_modules/.pnpm/[email protected]/node_modules/pino/pino.js|action-browser': No serializer registered for CommonJsRequireDependency
<w> while serializing webpack/lib/cache/PackFileCacheStrategy.PackContentItems -> webpack/lib/NormalModule -> Array { 24 items } -> CommonJsRequireDependency
<w> [webpack.cache.PackFileCacheStrategy] Skipped not serializable cache item 'Compilation/modules|javascript/dynamic|/home/.../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js??ruleSet[1].rules[20].oneOf[1].use[0]!/home/.../node_modules/.pnpm/[email protected]/node_modules/pino/browser.js|middleware': No serializer registered for CommonJsRequireDependency
<w> while serializing webpack/lib/cache/PackFileCacheStrategy.PackContentItems -> webpack/lib/NormalModule -> Array { 5 items } -> CommonJsRequireDependency

Subsequent Error:

Failed to compile.

../../node_modules/.pnpm/[email protected]/node_modules/pino/pino.js
No template for dependency: CommonJsRequireDependency

Import trace for requested module:
../../node_modules/.pnpm/[email protected]/node_modules/pino/pino.js
../../packages/logger/src/pino.ts
...

Any idea what is going on and how to fix it?

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant