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

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/rest/RequestHandler' is not defined by "exports" in C:\Users\Downloads\Compressed\invite-manager-bot-master\invite-manager-bot-master\node_modules\eris\package.json #167

Open
ShootDot opened this issue Aug 11, 2020 · 8 comments

Comments

@ShootDot
Copy link

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/rest/RequestHandler' is not defined by "exports" in C:\Users\Downloads\Compressed\invite-manager-bot-master\invite-manager-bot-master\node_modules\eris\package.json

How can I fix this error ?

@chaun14
Copy link

chaun14 commented Aug 15, 2020

Change node version (keep in node v12) , delete node_modules and it should works

@ShootDot
Copy link
Author

ShootDot commented Aug 16, 2020 via email

@chaun14
Copy link

chaun14 commented Aug 16, 2020

Downgrade node subversion

@ShootDot
Copy link
Author

ShootDot commented Aug 17, 2020 via email

@chaun14
Copy link

chaun14 commented Aug 17, 2020

Personally it works fine with v12.16.2

@ShootDot
Copy link
Author

ShootDot commented Aug 17, 2020 via email

@chaun14
Copy link

chaun14 commented Aug 17, 2020

i don't think so

@chaun14 chaun14 mentioned this issue Aug 31, 2020
@Malathub
Copy link

Go to "\node_modules\eris\package.json"
Add "./lib/rest/RequestHandler": "./lib/rest/RequestHandler.js" in the package.json in the export section

Like: "exports": { ".": [ { "require": "./index.js", "import": "./esm.mjs" }, "./index.js" ], "./lib/rest/RequestHandler": "./lib/rest/RequestHandler.js", "./esm": "./esm.mjs" },

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

3 participants