Error Code Portal
Node.jsNode.jsError code

ERR_PACKAGE_IMPORT_NOT_DEFINED

package import not defined

Code ERR_PACKAGE_IMPORT_NOT_DEFINED · An issue reported by Node.js.

The package.json "imports" field does not define the given internal package specifier mapping.

Troubleshooting and diagnostic links

First check that the document's product, version, and environment match your situation.