kit icon indicating copy to clipboard operation
kit copied to clipboard

inspect doesn't let you pass in number on 1.94.7

Open mattpocock opened this issue 2 years ago • 2 comments

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

mattpocock avatar Sep 18 '23 07:09 mattpocock

Seems to work in v2.2.13

alexilyaev avatar Jan 07 '24 15:01 alexilyaev

Definitely not an issue in later versions. Can be closed I believe

JosXa avatar May 09 '24 23:05 JosXa