vite-plugin-node-polyfills icon indicating copy to clipboard operation
vite-plugin-node-polyfills copied to clipboard

Bug: cannot polyfill the node process?

Open devnomic opened this issue 1 year ago • 0 comments

node_modules/@trigger.dev/core-backend/dist/index.mjs (2:9): "env" is not exported by "node_modules/vite-plugin-node-polyfills/shims/process/dist/index.js", imported by "node_modules/@trigger.dev/core-backend/dist/index.mjs"
nodePolyfills({
      include: ["buffer", "process"],
      globals: {
        Buffer: true,
        process: true,
      },
    }),

Code that trigger errors:

import { Buffer } from 'node:buffer';
import { env } from 'node:process'; <-- here

devnomic avatar Jul 06 '24 16:07 devnomic