stomp-js / stompjs

Javascript and Typescript Stomp client for Web browsers and node.js apps
Apache License 2.0
770 stars 81 forks source link

Module "net" has been externalized for browser compatibility #561

Closed JackieCheung closed 1 year ago

JackieCheung commented 1 year ago

Module "net" has been externalized for browser compatibility. See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.

faganer commented 1 year ago

me too

kum-deepak commented 1 year ago

Which version of the library are you using?

tsurumure commented 8 months ago

My version is 2.3.3

When i run build with PNPM, got a warning:

[plugin:vite:resolve] Module "net" has been externalized for browser compatibility, imported by "D:/CodeJava/QuickLaunchSpring/FrontendSys/node_modules/.pnpm/stompjs@2.3.3/node_modules/stompjs/lib/stomp-node.js". See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.

So i was run pnpm install net -D to fix the warning.