next-federation
Errors

NF-017: withNextFederation is missing from next.config

next-federation code ran in an app whose next.config does not use withNextFederation. The wrapper sets the values the runtime reads, such as the cache...

Why This Error Occurred

next-federation code ran in an app whose next.config does not use withNextFederation. The wrapper sets the values the runtime reads, such as the cache model and basePath.

Possible Ways to Fix It

  • Wrap your config and restart the build:

    // next.config.ts
    import { withNextFederation } from '@next-federation/next/config'
    
    export default withNextFederation(nextConfig)

On this page