Skip to content

Vite admin crash on Strapi 5.50.2: fast-deep-equal has no default export #681

Description

@marcolilli

After upgrading a Strapi project to 5.50.2, the admin panel crashes in development mode with:

Uncaught SyntaxError: The requested module 'http://localhost:1337/admin/node_modules/fast-deep-equal/index.js?...' doesn't provide an export named: 'default'

The issue appears to originate in strapi-plugin-navigation’s react-dnd@16.0.1 dependency, which imports the CommonJS-only fast-deep-equal package as a default export:

import equal from 'fast-deep-equal';

With Strapi’s Vite-based admin server, this nested CommonJS dependency is served without the required interop transformation.

Environment:

  • Strapi: 5.50.2
  • strapi-plugin-navigation: 3.3.7
  • Node.js: 24.13.0 and 22.23.1
  • npm: 11.6.2

Temporary workaround:

Add a Vite optimizer include rule to your vite.config:

optimizeDeps: {
   include: ['react-dnd > fast-deep-equal'],
}

Activity

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions