I just ran into a problem where I was getting an opaque error about sqlite3 and doing a fresh import from GitHub wasn’t helping. I knew the code at GitHub was fine because it worked when imported into a fresh Glitch project. So there was something hanging around in the filesystem somehow that was messing it up and I wanted to start from scratch as if creating a new project, but keep my current project name.
Here’s what finally worked:
- Save a copy of the .env file – the one thing not in GitHub
- Go to the Glitch terminal and do
rm -rf *and
rm -rf .*
- Do another import from GitHub
- Create a new file
- Paste in the contents of it from step 1
You’re welcome future self searching the Glitch forum for how I solved this last time.
(I believe there’s a much simpler solution, like doing “npm reinstall” or some such incantation but I failed to figure it out so I’m recording this nuclear option for posterity.)