Error on using fs to writeFile json

Make sure the path to your file is correct. A similar issue was opened recently and this answer helped them to resolve it: Discord.js FS Module Broken?

1 Like