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

Skipped not serializable | makeSeriazable #1530

Closed
ScriptedAlchemy opened this issue Oct 9, 2023 · 6 comments
Closed

Skipped not serializable | makeSeriazable #1530

ScriptedAlchemy opened this issue Oct 9, 2023 · 6 comments

Comments

@ScriptedAlchemy
Copy link
Member

ScriptedAlchemy commented Oct 9, 2023

if you get an error like this
Skipped not serializable cache item 'Compilation/modules|container entry (default) [["./noop",{"import":["/workspace/node_modules/@module-federation/nextjs-mf/src/federation-noop.js"]}],["./index",{"import":["./pages/index.tsx"]}]]': No serializer registered for ContainerEntryModule <w> while serializing webpack/lib/cache/PackFileCacheStrategy.PackContentItems

         Creating an optimized production build ...
       (node:2474) [DEP_WEBPACK_MODULE_ID] DeprecationWarning: Module.id: Use new ChunkGraph API
       (Use `node --trace-deprecation ...` to show where the warning was created)
       Failed to compile.
       
       webpack/runtime/inverted container startup
       Module.id: There was no ChunkGraph assigned to the Module for backward-compat (Use the new API)
       

make sure process.env.NEXT_PRIVATE_LOCAL_WEBPACK = 'true' is set in .env or if that doenst work, on the command line.

NEXT_PRIVATE_LOCAL_WEBPACK=true next dev

@DannyBoris
Copy link

Hey, how does that relate to #1104?
the issue still happens.

@ScriptedAlchemy
Copy link
Member Author

@DannyBoris was other issue, resolved already

@VuongNQ
Copy link

VuongNQ commented Dec 6, 2023

@ScriptedAlchemy
I got issue 1579 so I'm try using last version canary but still got this error when I run dev
I had reproduce, you can check on this repo

@ScriptedAlchemy
Copy link
Member Author

You need get server props or get initial props otherwise it static generates and there's no router to share.

@VuongNQ
Copy link

VuongNQ commented Dec 13, 2023

You need get server props or get initial props otherwise it static generates and there's no router to share.

sorry I'm really not get your point, what exactly I should do ??

  • at version 8.1.0-canary I'm still get error 1530
  • at version 7.0.8 has issue share route 1579

Copy link
Contributor

Stale issue message

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

No branches or pull requests

3 participants