alexemanuelol / rustplusplus

A NodeJS Discord Bot that uses the rustplus.js library to utilize the power of the Rust+ Companion App with additional Quality-of-Life features.
GNU General Public License v3.0
196 stars 97 forks source link

bot dont start #197

Closed C74K closed 1 year ago

C74K commented 1 year ago

/root/A/src/structures/RustPlus.js:24 const Translate = require('translate'); ^

Error [ERR_REQUIRE_ESM]: require() of ES Module /root/A/node_modules/translate/index.min.js from /root/A/src/structures/RustPlus.js not supported. Instead change the require of index.min.js in /root/A/src/structures/RustPlus.js to a dynamic import() which is available in all CommonJS modules. at Object. (/root/A/src/structures/RustPlus.js:24:19) at Object. (/root/A/src/structures/DiscordBot.js:34:18) at Object. (/root/A/index.ts:25:20) { code: 'ERR_REQUIRE_ESM' } root@czakgames:~/A#

alexemanuelol commented 1 year ago

Could you be more elaborate?

C74K commented 1 year ago

only this bot return affter use node .

PandeoF1 commented 1 year ago

Run it with npm start

C74K commented 1 year ago

i try full re install without overwrite old files

C74K commented 1 year ago

fixed by full re install