kit
kit copied to clipboard
inspect doesn't let you pass in number on 1.94.7
Running:
await inspect(42);
Results in:
The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received type number (21)
TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received type number (21)
at writeFile (node:internal/fs/promises:874:5)
at global.inspect (file:///Users/matt/.kit/api/kit.js:312:18)
at file:///Users/matt/.kenv/scripts/get-ship-percentage.ts
Seems to work in v2.2.13
Definitely not an issue in later versions. Can be closed I believe