invite-manager-bot
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
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 ?
Change node version (keep in node v12) , delete node_modules and it should works
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 .
Downgrade node subversion
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 .
Personally it works fine with v12.16.2
Oh So should I add anything in package.json or something extra lines of code ?
i don't think so
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" },