Error Code Portal
Node.jsNode.jsError code

ERR_PACKAGE_MAP_EXTERNAL_FILE

package map external file

Code ERR_PACKAGE_MAP_EXTERNAL_FILE · An issue reported by Node.js.

A module attempted to resolve a bare specifier using the package map, but the importing file is not located within any package defined in the map. To fix this error, ensure the importing file is inside one of the package directories listed in the package map, or add a new package entry whose url covers the importing file.

Troubleshooting and diagnostic links

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