invite-manager-bot icon indicating copy to clipboard operation
invite-manager-bot copied to clipboard

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

Open ShootDot opened this issue 4 years ago • 8 comments

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 ?

ShootDot avatar Aug 11 '20 13:08 ShootDot

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

chaun14 avatar Aug 15 '20 07:08 chaun14

I am using node 12 only still i get this error

On Sat, 15 Aug 2020, 11:52 am chaun14, [email protected] 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 .

ShootDot avatar Aug 16 '20 03:08 ShootDot

Downgrade node subversion

chaun14 avatar Aug 16 '20 06:08 chaun14

To how much should I downgrade I have node 12.8.3

On Sun, 16 Aug 2020, 10:43 am chaun14, [email protected] 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 .

ShootDot avatar Aug 17 '20 06:08 ShootDot

Personally it works fine with v12.16.2

chaun14 avatar Aug 17 '20 06:08 chaun14

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

ShootDot avatar Aug 17 '20 08:08 ShootDot

i don't think so

chaun14 avatar Aug 17 '20 15:08 chaun14

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

Malathub avatar Aug 31 '20 21:08 Malathub