`Uncaught TypeError: encode is not a function` when using npm module `@kubernetes-client/node`
I'm trying to use a particular call in the npm module
@kubernetes/client-node
from deno, but I'm getting a TypeError, and I'm not sure how to debug it:
Code at https://gist.github.com/berge/379b25d2e780ccddf2734773ef6b6bdc.
I'm unsure if this is a bug in Deno's nodejs compatibility layer, or something else. (The program works fine in nodejs with typescript.) What's a good place to start investigating?
Edit: Deno version:
11 Replies
Deno
Node.js compatibility mode | Manual | Deno
Starting with v1.15 Deno provides Node compatiblity mode that makes it possible
to run a subset of programs authored for Node.js directly in Deno. Compatiblity
mode can be activated by passing `--com
try compat flag
--compat
was removed in Deno 1.25.2, since the npm:
style import was introduced. I don't think this is an import problem as such, it kind of looks like some sort of implementation error in the querystring
emulation layer in Deno, right?
For what it's worth, this appears to be fixed as of Deno 1.36.3.is this fixed for you? i'm still running into it with Deno 1.39.0
Same here
have you guys seen the code on the stack trace? I'll try to look at it when I go to the PC
Also.. what about tô use the deno.land alternative??? I use and love it
This is getting fixed in 1.39.2
<:party_deno:1035517691517218847>
I can confirm that was fixed!
is anyone else running into cert issues with
@kubernetes/client-node
and Deno? I can only get it to run with --unsafely-ignore-certificate-errors
, otherwise I run into this issue: https://github.com/denoland/deno/issues/2301Yes you need to since kubernetes uses self-signed certs @hpx7