Closed moonthug closed 10 months ago
throw Error('Dynamic require of "' + x + '" is not supported'); Dynamic require of xxx is not supported Dynamic require of "events" is not supported
It doesnt through an error?
Error thrown: Dynamic require of "events" is not supported
It comes from the ws package
ws
var require_websocket = __commonJS({ "../../node_modules/roslib/node_modules/ws/lib/websocket.js"(exports, module) { "use strict"; var EventEmitter = __require("events"); ...
{ "extends": "tsconfig/app.json", "compilerOptions": { "esModuleInterop": true, "module": "Node16", "moduleResolution": "node16", "outDir": "dist", "target": "ES2022" }, "include": ["**/*.ts"], "exclude": ["dist", "node_modules"] }
{ ... "type": "module", }
Search Terms
throw Error('Dynamic require of "' + x + '" is not supported'); Dynamic require of xxx is not supported Dynamic require of "events" is not supported
Expected Behavior
It doesnt through an error?
Actual Behavior
Error thrown: Dynamic require of "events" is not supported
Steps to reproduce the problem
It comes from the
ws
packageMinimal reproduction
Specifications