biome: π invalid value: string "[object Object]", expected relative URL without a base
Environment information
CLI:
Version: 2.0.0
Color support: true
Platform:
CPU Architecture: x86_64
OS: linux
Environment:
BIOME_LOG_PATH: unset
BIOME_LOG_PREFIX_NAME: unset
BIOME_CONFIG_PATH: unset
BIOME_THREADS: unset
NO_COLOR: unset
TERM: xterm-256color
JS_RUNTIME_VERSION: v22.16.0
JS_RUNTIME_NAME: node
NODE_PACKAGE_MANAGER: pnpm/10.12.1
Biome Configuration:
Status: Loaded successfully
Path: biome.json
Formatter enabled: true
Linter enabled: true
Assist enabled: true
VCS enabled: false
Workspace:
Open Documents: 0
What happened?
I have VSCode set to auto format / indent code on save with biome.
Though when I saved a file with an error in a typescript code. It always result in the same error with a small toast.
Toast with the message: Request textDocument/codeAction failed.
Error always being:
2025-06-14 14:15:40.944 [info] [Error - 2:15:40 PM] Request textDocument/codeAction failed.
2025-06-14 14:15:40.944 [info] Message: invalid value: string "[object Object]", expected relative URL without a base
Code: -32602
At some point, it suggested me this Code formatting aborted due to parsing errors. To format code with errors, enable the 'formatter.formatWithErrors' option. but when I tried adding that to vscode, it says itβs an unknown setting.
How to reproduce:
Change from
export const delay = (ms: number) => new Promise<void>((resolve) => setTimeout(resolve, ms));
To
export const delay = (ms: number) => new Promise<((resolve) => setTimeout(resolve, ms));
Expected result
To not result in this type of error. Maybe a better one or dont error at all.
No toast. Because it doesnt really tell anything.
Code of Conduct
- I agree to follow Biomeβs Code of Conduct
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 21 (8 by maintainers)
Iβm glad you managed to fix it π