Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SockJs 사용시 Uncaught ReferenceError: global is not defined #68

Open
DolphaGo opened this issue Mar 29, 2022 · 0 comments
Open

SockJs 사용시 Uncaught ReferenceError: global is not defined #68

DolphaGo opened this issue Mar 29, 2022 · 0 comments

Comments

@DolphaGo
Copy link
Owner

vue 3 버전으로 sockjs를 이용하여 간단한 채팅을 만들어보고 있는데, 다음과 같은 에러가 났다.

event.js:8 Uncaught ReferenceError: global is not defined
    at node_modules/sockjs-client/lib/utils/event.js (event.js:8)
    at __require (chunk-T7KYDC53.js?v=a7e674ed:6)
    at node_modules/sockjs-client/lib/transport/websocket.js (websocket.js:3)
    at __require (chunk-T7KYDC53.js?v=a7e674ed:6)
    at node_modules/sockjs-client/lib/transport-list.js (transport-list.js:5)
    at __require (chunk-T7KYDC53.js?v=a7e674ed:6)
    at node_modules/sockjs-client/lib/entry.js (entry.js:3)
    at __require (chunk-T7KYDC53.js?v=a7e674ed:6)
    at dep:sockjs-client:1
node_modules/sockjs-client/lib/utils/event.js @ event.js:8
__require @ chunk-T7KYDC53.js?v=a7e674ed:6
node_modules/sockjs-client/lib/transport/websocket.js @ websocket.js:3
__require @ chunk-T7KYDC53.js?v=a7e674ed:6
node_modules/sockjs-client/lib/transport-list.js @ transport-list.js:5
__require @ chunk-T7KYDC53.js?v=a7e674ed:6
node_modules/sockjs-client/lib/entry.js @ entry.js:3
__require @ chunk-T7KYDC53.js?v=a7e674ed:6
(anonymous) @ dep:sockjs-client:1

일단 비슷한 증상이 있는 분들이 있어서 낄껴했다.

sockjs/sockjs-client#547

global 이슈는 여기를 참조하여 해결 할 수 있다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant