You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: global is not defined
at node_modules/.pnpm/event-stream@3.3.4/node_modules/event-stream/index.js (http://localhost:3000/_nuxt/node_modules/.cache/vite/client/deps/httpsnippet_src_index.js?v=8be32947:2722:23)
at __require (http://localhost:3000/_nuxt/node_modules/.cache/vite/client/deps/chunk-5WWUZCGV.js?v=8be32947:8:50)
at node_modules/.pnpm/httpsnippet@2.0.0_mkdirp@1.0.4/node_modules/httpsnippet/src/index.js (http://localhost:3000/_nuxt/node_modules/.cache/vite/client/deps/httpsnippet_src_index.js?v=8be32947:10392:14)
at __require (http://localhost:3000/_nuxt/node_modules/.cache/vite/client/deps/chunk-5WWUZCGV.js?v=8be32947:8:50)
at http://localhost:3000/_nuxt/node_modules/.cache/vite/client/deps/httpsnippet_src_index.js?v=8be32947:10614:16
which is because of the library event-stream is not a browser compatible lib?
Activity
brianvoe commentedon Oct 30, 2023
Its a node package that cant be used in from end development unless you figure out a bunch of polyfills
tnrich commentedon Oct 25, 2024
@ayZagen looks like someone made this version work for the client - https://www.npmjs.com/package/httpsnippet-lite
(vite compatible)
brianvoe commentedon Oct 25, 2024
OMG! you just made my night ive been running a server to make http calls to get http responses
brianvoe commentedon Oct 25, 2024
@tnrich @ayZagen #359 Go over there comment to get this in!