Cannot import 'events'

When running pnpm wrangler dev i get this error
Uncaught Error: Dynamic require of "node:events" is not supported
Uncaught Error: Dynamic require of "node:events" is not supported
the line that this points in the transpiled js is this
const node_events_1 = __importDefault(require("node:events"));
const node_events_1 = __importDefault(require("node:events"));
how can i fix this ?
1 Reply
fero.xd
fero.xdOP9mo ago
anyone ?
Want results from more Discord servers?
Add your server