Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERR_PACKAGE_PATH_NOT_EXPORTED #74

Open
Justman100 opened this issue Jul 11, 2024 · 6 comments
Open

ERR_PACKAGE_PATH_NOT_EXPORTED #74

Justman100 opened this issue Jul 11, 2024 · 6 comments

Comments

@Justman100
Copy link

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
Copy link
Author

@siddharthvp

@siddharthvp
Copy link
Owner

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.

@Justman100
Copy link
Author

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

@siddharthvp
Copy link
Owner

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

@Justman100
Copy link
Author

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

I don't have such tools

@Justman100
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants