You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/errors/RDDT0002.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,15 @@
2
2
outline: deep
3
3
---
4
4
5
-
# RDDT0002: JSON Parse Stream Bad Line
5
+
# RDDT0002: Rolldown Log Reader Bad Line
6
6
7
7
## Message
8
8
9
-
> JSON parse stream skip bad line {line}: {error}
9
+
> Rolldown log reader skipped bad line {line}: {error}
10
10
11
11
## Cause
12
12
13
-
Rolldown writes its build logs as newline-delimited JSON (NDJSON). When the devtools plugin reads these files, it parses each line individually using `JSON.parse`. If a line cannot be parsed as valid JSON, this warning is emitted and the line is skipped.
13
+
Rolldown writes its build logs as newline-delimited JSON (NDJSON). When the devtools plugin reads these files, it parses each line individually. If a line cannot be parsed as a valid Rolldown debug event, this warning is emitted and the line is skipped.
14
14
15
15
Common reasons a line might fail to parse:
16
16
@@ -30,4 +30,4 @@ This warning is non-fatal -- the bad line is skipped and processing continues wi
30
30
31
31
## Source
32
32
33
-
-[`packages/rolldown/src/node/utils/json-parse-stream.ts`](https://github.com/vitejs/devtools/blob/main/packages/rolldown/src/node/utils/json-parse-stream.ts) — the NDJSON line parser logs `RDDT0002`(with the line number, error message, and a 256-char preview) and skips the line when `JSON.parse` throws.
33
+
-[`packages/rolldown/src/node/rolldown/events-reader.ts`](https://github.com/vitejs/devtools/blob/main/packages/rolldown/src/node/rolldown/events-reader.ts) — `readEventLines()`logs `RDDT0002` with the line number, error message, and a 256-character preview when parsing a log line fails.
0 commit comments