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#
/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#