Could not resolve a bunch of packages

Hi, I am trying to make a simple thing to send requests thru an authenticated proxy, but for some reason when I try to build, I get a bunch of errors.

X [ERROR] Could not resolve "worker_threads"

    node_modules/undici/lib/fetch/constants.js:3:57:
      3 │ ... MessageChannel, receiveMessageOnPort } = require('worker_threads')
        ╵                                                      ~~~~~~~~~~~~~~~~

  The package "worker_threads" wasn't found on the file system but is built into node. Are you trying 
to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
I get this error but for async_hooks stream/web util/types perf_hooks diagnostics_channel and of course, worker_threads
Was this page helpful?