Repeating build will prompt “RPC error on executing” when executing dev.
The first time run “pnpm run build” and run “pnpm run dev” it opens devtools normally, but the second time try to run “pnpm run build” it gives the message " ERROR ⬢ RPC error on executing "vite:rolldown:list-sessions":" related read content error, as shown in the following figure:
The last thing I checked was that reading .rolldown/0000000000000/meta.json under RolldownLogsManager would be json.parse
After executing pnpm build multiple times, the .rolldown/000000000000/meta.json is in a streaming JSON format, which causes a JSON.parse error.
rm -rf .rolldown is work
#15 This PR can fix the issue, but I'm not sure if it's applicable in all cases. If you have any better ideas, we can discuss them.