ZE40004: Shared package error

Shared package error.

Quick Help

The fastest way to resolve this error is to join our Discord and leave a message - our team is ready to help!

  • Error Code: ZE40004
  • Location: Terminal
  • Related plugins: all

This error occurs when there's an issue with the shared packages configuration in your Module Federation setup.

Debugging the error

Verify shared configuration

Ensure your shared packages configuration is valid:

shared: {
  react: {
    singleton: true,
    requiredVersion: '^18.0.0',
  },
  'react-dom': {
    singleton: true,
    requiredVersion: '^18.0.0',
  },
}

Check for version conflicts

Ensure there are no conflicting version requirements between host and remote applications.

Verify package installation

Make sure all shared packages are properly installed in your node_modules.