devtools icon indicating copy to clipboard operation
devtools copied to clipboard

Repeating build will prompt “RPC error on executing” when executing dev.

Open lonewolfyx opened this issue 1 year ago • 3 comments

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:

Image

The last thing I checked was that reading .rolldown/0000000000000/meta.json under RolldownLogsManager would be json.parse

lonewolfyx avatar Jul 12 '25 15:07 lonewolfyx

After executing pnpm build multiple times, the .rolldown/000000000000/meta.json is in a streaming JSON format, which causes a JSON.parse error.

pkc918 avatar Jul 12 '25 15:07 pkc918

rm -rf .rolldown is work

ufec avatar Jul 12 '25 15:07 ufec

#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.

pkc918 avatar Jul 12 '25 16:07 pkc918