Error Code Portal
Node.jsNode.jsError code

ERR_INVALID_PACKAGE_TARGET

invalid package target

Code ERR_INVALID_PACKAGE_TARGET · An issue reported by Node.js.

The package.json "exports" field contains an invalid target mapping value for the attempted module resolution.

Troubleshooting and diagnostic links

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