Menu
Urgent
React2Shell security update

PACKAGE_JSON_TYPE_REQUIRED

Last updated March 4, 2025

Conformance is available on Enterprise plans

This check ensures that every has a field. This field determines how files within the workspace are treated by default. Files are treated as CommonJS by default. However, the new recommendation is to use ES Modules.

This field is required so that packages explicitly choose which module format to use, preferring ES Modules when possible.

See the Node.js docs for more information.

The field should be set to when possible, although there are still situations where has to be used.


Was this helpful?

supported.