oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
73.5k stars 2.71k forks source link

Implement node:v8 setFlagsFromString #11264

Open roderik opened 4 months ago

roderik commented 4 months ago

What is the problem this feature would solve?

I'm trying to run a nestjs application which uses the Pulumi automation api, it appears to use setFlagsFromString which is currently not implemented

NotImplementedError: node:v8 setFlagsFromString is not yet implemented in Bun.
 code: "ERR_NOT_IMPLEMENTED"

      at new NotImplementedError (internal:shared:19:14)
      at internal:shared:2:35
      at node:v8:2:23
      at node:v8:30:33
      at /Users/roderik/Development/btp/node_modules/@pulumi/pulumi/runtime/closure/v8.js:135:12
      at anonymous (native:1:1)
      at /Users/roderik/Development/btp/node_modules/@pulumi/pulumi/runtime/closure/createClosure.js:393:29
      at anonymous (native:1:1)
      at /Users/roderik/Development/btp/node_modules/@pulumi/pulumi/runtime/closure/serializeClosure.js:122:14
      at anonymous (native:1:1)
      at /Users/roderik/Development/btp/node_modules/@pulumi/pulumi/runtime/index.js:30:31
      at anonymous (native:1:1)
      at /Users/roderik/Development/btp/node_modules/@pulumi/pulumi/index.js:48:18
      at anonymous (native:1:1)
      at /Users/roderik/Development/btp/node_modules/@pulumi/aws/appconfig/index.js:8:1

Bun v1.1.9 (macOS arm64)

What is the feature you are proposing to solve the problem?

Not a clue what it does, but it would make this error go away

What alternatives have you considered?

Sticking to node 🤷🏻

Electroid commented 4 months ago

It looks like that package also depends on supporting the Chrome DevTools Protocol (it calls the inspector)

That is a more complicated project, we do want to do this eventually, but unfortunately this won't be a quick fix.

ffMathy commented 2 weeks ago

Using Pulumi via NX is needed for this.