venom icon indicating copy to clipboard operation
venom copied to clipboard

Error ESM

Open satishgunasekaran opened this issue 1 year ago • 0 comments

/home/satishg/Documents/Personal/WABuddy/backend/node_modules/venom-bot/dist/controllers/browser.js:30 const ChromeLauncher = __importStar(require("chrome-launcher")); ^

Error [ERR_REQUIRE_ESM]: require() of ES Module /home/satishg/Documents/Personal/WABuddy/backend/node_modules/chrome-launcher/dist/index.js from /home/satishg/Documents/Personal/WABuddy/backend/node_modules/venom-bot/dist/controllers/browser.js not supported. Instead change the require of index.js in /home/satishg/Documents/Personal/WABuddy/backend/node_modules/venom-bot/dist/controllers/browser.js to a dynamic import() which is available in all CommonJS modules. at Object. (/home/satishg/Documents/Personal/WABuddy/backend/node_modules/venom-bot/dist/controllers/browser.js:30:37) at Object. (/home/satishg/Documents/Personal/WABuddy/backend/node_modules/venom-bot/dist/controllers/initializer.js:6:19) { code: 'ERR_REQUIRE_ESM' }

Node.js v21.2.0

satishgunasekaran avatar Dec 24 '23 13:12 satishgunasekaran