mwn icon indicating copy to clipboard operation
mwn copied to clipboard

ERR_PACKAGE_PATH_NOT_EXPORTED

Open Justman100 opened this issue 1 year ago • 6 comments

Hi, I recently got this:

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/defaults' is not defined by "exports" in /home/Scripts/IPChecker/node_modules/axios/package.json

Justman100 avatar Jul 11 '24 15:07 Justman100

@siddharthvp

Justman100 avatar Jul 11 '24 15:07 Justman100

Please provide more details - such as the full error trace, whether your project uses ESM or not (and if so what build tools you are using), and the sample code which is raising the error.

siddharthvp avatar Jul 11 '24 15:07 siddharthvp

Please provide more details - such as the full error trace, whether your project uses ESM or not (and if so what build tools you are using), and the sample code which is raising the error.

Project is ESM, and the error occurs, if I only import MWN

Justman100 avatar Jul 11 '24 15:07 Justman100

Mwn does not natively support ESM. Are you using a build tool to compile the project to CommonJS?

siddharthvp avatar Jul 11 '24 16:07 siddharthvp

Are you using a build tool to compile the project to CommonJS?

I don't have such tools

Justman100 avatar Jul 11 '24 16:07 Justman100

Mwn does not natively support ESM. Are you using a build tool to compile the project to CommonJS?

Have created a separate project in CommonJS! Same error there!

Justman100 avatar Jul 29 '24 07:07 Justman100

Closing as proper steps to reproduce have been provided.

siddharthvp avatar Jul 05 '25 09:07 siddharthvp