`arch` and `platform` are empty strings in `node:process`
๐ hello! I'm trying to use a node project that uses
arch
and platform
inside node:process
, which works great in Node, but they appear to be empty strings in Deno.
Is this expected behavior? I know the Deno.build
object also has this info, but I'm trying to keep it compatible with an external npm
package.
Thank you!2 Replies
That sounds like a bug in Deno's node compatibility layer. Can you file an issue for that? https://github.com/denoland/deno/issues/new?assignees=&labels=&projects=&template=bug_report.md&title=
Done, thanks! https://github.com/denoland/deno/issues/22540
GitHub
arch
and platform
are empty strings in node:process
ยท Issue #...Version: Deno 1.41.0 I'm trying to use the process.arch and process.platform from node:process. In node it works as expected, but in Deno they both return empty strings. import { arch, platform...