I’ve had a discord bot up and running for about a month now and all of a sudden it came up with an error of "Cannot find module ‘express’. I havent touched the code in nearly 2 weeks and it randomly broke. I have another bot with the exact same ‘package.json’ and it’s doing fine; hasnt crashed like this. When I move differnet modules above express it then changes and says “cannot find module ‘{whatever the name of the module I moved to the top is}’”
Ah, well this is hacky but what I’d do is remix it and see if it works in a remix, than copy over the env info to the new remix and rename the old one something like pennywise-bot-1 and the new rename to pennywise-bot
Having this in your dependencies can cause installs to fail, that’s why it wasn’t working most likely. you don’t need to list node.js for npm/pnpm to read as a dependency