SideProjectGuys / invite-manager-bot

A discord bot that tracks invites and much more
https://docs.invitemanager.co/
GNU General Public License v3.0
166 stars 136 forks source 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 #167

Open ShootDot opened 4 years ago

ShootDot commented 4 years ago

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 commented 4 years ago

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

ShootDot commented 4 years ago

I am using node 12 only still i get this error

On Sat, 15 Aug 2020, 11:52 am chaun14, notifications@github.com wrote:

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SideProjectGuys/invite-manager-bot/issues/167#issuecomment-674364533, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANKUPS2LXENMMQSGOEKYP63SAY5CRANCNFSM4P3BAUJA .

chaun14 commented 4 years ago

Downgrade node subversion

ShootDot commented 4 years ago

To how much should I downgrade I have node 12.8.3

On Sun, 16 Aug 2020, 10:43 am chaun14, notifications@github.com wrote:

Downgrade node subversion

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SideProjectGuys/invite-manager-bot/issues/167#issuecomment-674487462, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANKUPS526W52CHOV6GEUK73SA552TANCNFSM4P3BAUJA .

chaun14 commented 4 years ago

Personally it works fine with v12.16.2

ShootDot commented 4 years ago

Oh So should I add anything in package.json or something extra lines of code ?

chaun14 commented 4 years ago

i don't think so

Malathub commented 3 years ago

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" },