Skip to content

Skipped not serializable | makeSeriazable #1530

Closed as not planned
Closed as not planned
@ScriptedAlchemy

Description

@ScriptedAlchemy

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions