CLI:
Version: 1.9.0
Color support: true
Platform:
CPU Architecture: aarch64
OS: macos
Environment:
BIOME_LOG_PATH: unset
BIOME_LOG_PREFIX_NAME: unset
BIOME_CONFIG_PATH: unset
NO_COLOR: unset
TERM: "xterm-256color"
JS_RUNTIME_VERSION: "v21.7.3"
JS_RUNTIME_NAME: "node"
NODE_PACKAGE_MANAGER: "pnpm/9.7.0"
Biome Configuration:
Status: Loaded successfully
Formatter disabled: false
Linter disabled: true
Organize imports disabled: true
VCS disabled: true
Workspace:
Open Documents: 0
The latest versions of biomejs/js-api
(0.6.2) and @biomejs/wasm-nodejs
(1.9.0) appear to be incompatible.
When trying an example similar to that in the README
import { Biome, Distribution } from "@biomejs/js-api";
Biome.create({
distribution: Distribution.NODE,
}).then(biome => {
const formatted = biome.formatContent("function f (a, b) { return a == b; }", {
filePath: "example.js",
});
})
it crashes with an error of the form: Error: missing field
kind. This does not happen with @biomejs/wasm-nodejs
1.8.3. and appears to be a compatibility issue.
I see that biomejs/js-api
"is currently in alpha" and perhaps it's expected for it to not be compatible with the latest releases of @biomejs/wasm-nodejs
/ @biomejs/biome
?
It should not throw an error
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too