Menu
Important
Stay updated on React2Shell

NEXTJS_MISSING_MODULARIZE_IMPORTS

Last updated March 4, 2025

Conformance is available on Enterprise plans

This rule has been deprecated as of version 1.10.0and will be removed in 1.10.0.

is a feature of Next 13 that can reduce dev compilation times when importing packages that are exported as barrel files. Barrel files are convenient ways to export code from a package from a single file to make it straightforward to import any of the code from the package. However, since they export a lot of code from the same file, importing these packages can cause tools to do a lot of additional work analyzing files that are unused in the application.

To fix this, you can add a config to for the package that uses barrel files. For example:

The exact format of the transform may differ by package, so double check how the package uses barrel files first.

See the Next.js docs for more information.

You can also specify required config for your own packages.

In your file, add:

This will require that any workspace in your monorepo that uses the package must use the provided config in their file.

See Customizing Conformance for more information.


Was this helpful?

supported.