Closed onlyice closed 1 year ago
This error seems to happen only when @types/node
is not loaded, is this intentional?
This error seems to happen only when
@types/node
is not loaded, is this intentional?
My project is a pure client React project, so there is no need to use @types/node
.
After adding @types/node
into dev dependencies, the issue is fixed. Thanks!
How can this be solved in Deno?
Does it work using the same solution?
No, it does not
Exact same error or something else?
Yes.
Property 'encoding' is missing in type 'ArraySchema<any[]>' but required in type 'BinarySchema<Buffer>'.deno-ts(2741)
You'll have to be more specific than that, I tried a quick codespace with deno 1.43 and it worked out of the box with the code above.
Support plan
Context
What are you trying to achieve or the steps to reproduce?
The following code produced a TypeScript error:
What was the result you got?
The TS compiler reports the following:
I'm using TypeScript 5.2.2 with the following
tsconfig.json
:What result did you expect?
I would expect the code to compile without issues.