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
Reformats syntax error messages to use a structured format with
location on its own line, pipe margins, line numbers, and carets
instead of the previous flat single-line format.
Before:
The module's source code could not be parsed: Expected ',' got 'x' at file:///a.js:1:13
import from "./foo.js"
~~~~~~~~~~
After:
Expected ',' got 'x'
at file:///a.js:1:13
|
1 | import from "./foo.js"
| ~~~~~~~~~~
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: tests/specs/graph/cjs/file_export.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ export class Test {}
12
12
"modules": [
13
13
{
14
14
"specifier": "file:///file.cjs",
15
-
"error": "The module's source code could not be parsed: 'import', and 'export' cannot be used outside of module codeat file:///file.cjs:1:1\n\n export class Test {}\n ~~~~~~"
15
+
"error": "'import', and 'export' cannot be used outside of module code\n at file:///file.cjs:1:1\n |\n1 | export class Test {}\n | ~~~~~~"
0 commit comments