Discord-Mass-DM-Tool icon indicating copy to clipboard operation
Discord-Mass-DM-Tool copied to clipboard

Error [ERR_REQUIRE_ESM]: require() of ES Module

Open deman2660 opened this issue 3 years ago • 2 comments

Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Users\deman\OneDrive\Desktop\Folders\Discord-Mass-DM-Tool-3revamp\node_modules\chalk\source\index.js from C:\Users\deman\OneDrive\Desktop\Folders\Discord-Mass-DM-Tool-3revamp\script.js not supported. Instead change the require of index.js in C:\Users\deman\OneDrive\Desktop\Folders\Discord-Mass-DM-Tool-3revamp\script.js to a dynamic import() which is available in all CommonJS modules. at Object.<anonymous> (C:\Users\deman\OneDrive\Desktop\Folders\Discord-Mass-DM-Tool-3revamp\script.js:11:38) { code: ←[32m'ERR_REQUIRE_ESM'←[39m } I get this error when trying to run the script, any way to fix it?

deman2660 avatar Dec 23 '21 02:12 deman2660

get the same god damn thing... rip

r3dg0d avatar Jul 05 '22 09:07 r3dg0d

Install lower version of chalk - npm install chalk@^4.1.2

chethanyadav456 avatar Jul 06 '22 05:07 chethanyadav456