Error code

Node.js ERR_PACKAGE_PATH_NOT_EXPORTED

NODE.JSERR_PACKAGE_PATH_NOT_EXPORTED
Runtime Error Code· An error code from a programming runtime or package manager, like Node.js or npm.

What it means

The package.json exports field does not expose the requested sub-path.

How to fix it

  1. Import only paths the package officially exports.
  2. Check the package documentation for the correct import path.
  3. If you own the package add the path to the exports map in package.json.

Not affiliated with Node.js. Answer summarized from the manufacturer's manual linked above; consult that source for the authoritative procedure.