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_client is not a constructor #612

Open
jromerob opened this issue Nov 24, 2022 · 3 comments
Open

sockjs_client is not a constructor #612

jromerob opened this issue Nov 24, 2022 · 3 comments

Comments

@jromerob
Copy link

i'm migrating an angular6 to angular 13 app using STOMP with sockjs-client.

Now when try to create my Sockjs client, it generates an error:

sockjs_client__WEBPACK_IMPORTED_MODULE_0___namespace_cache || sockjs_client__WEBPACK_IMPORTED_MODULE_0___namespace_cache) is not a constructor

i'm importing the package with

import * as SockJS from 'sockjs-client';

and using it :

const socket = new SockJS(
            `${this.getBaseURI()}${GreetingsServerpushService.STOMP_PREFIX}`,
            {},
            {
                transports: [GreetingsServerpushService.SOCKJS_TRANSPORT_STRATEGY],
                timeout: GreetingsServerpushService.SOCKJS_TIMEOUT,
            }
        );

Any idea about this error?

Thx a lot

@github-actions
Copy link

This issue has been inactive for 30 days. It will be in closed in 5 days without any new activity.

@github-actions
Copy link

This issue has been inactive for 30 days. It will be in closed in 5 days without any new activity.

@github-actions
Copy link

This issue has been inactive for 30 days. It will be in closed in 5 days without any new activity.

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

2 participants