Cryptic Vite Errors
Problem
Running the command
vite
or bun run dev
does not work properly and results in the following error.
Error
What I've tried so far
1. Replace bun
with npm
or pnpm
2. Clearing cache
3. Making a fresh project with just Laravel
4. Checking for possible json syntax errors on the whole folder, everything returns a Syntax OK
5. Restoring a backup of my computer to a previous week, in case anything changed on the background and it broke node.
6. Changing node versions (latest, latest LTS, and 21.1.0)3 Replies