mwn
mwn copied to clipboard
ERR_PACKAGE_PATH_NOT_EXPORTED
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
@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.
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
Mwn does not natively support ESM. Are you using a build tool to compile the project to CommonJS?
Are you using a build tool to compile the project to CommonJS?
I don't have such tools
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!
Closing as proper steps to reproduce have been provided.