Node.js
Node.js blocked access to a package subpath that is not exported
Node.js found the package, but the requested subpath is not exposed through the package exports field, so the import is blocked.
Node.js
Node.js found the package, but the requested subpath is not exposed through the package exports field, so the import is blocked.
Observed message
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath is not defined by "exports"
Why it happens
How to fix it
Official reference
Node.js Errors: ERR_PACKAGE_PATH_NOT_EXPORTEDRelated errors
Explore more