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

Can't find sockjs-client/dist/sockjs #624

Open
scottwalter-nice opened this issue Feb 27, 2024 · 0 comments
Open

Can't find sockjs-client/dist/sockjs #624

scottwalter-nice opened this issue Feb 27, 2024 · 0 comments

Comments

@scottwalter-nice
Copy link

scottwalter-nice commented Feb 27, 2024

Hi,

I'm trying to import a specific commonjs build artifact:

import SockJS from 'sockjs-client/dist/sockjs';

It works great in the library I built. However, when running unit tests I can't get passed this error:

An error was thrown in afterAll
Uncaught Error: Can't find sockjs-client/dist/sockjs [undefined] (required by /Volumes/T16-Skyhopper/cxone/libs/cxone-client-platform-services/src/lib/notification/notification.service.ts)
Error: Can't find sockjs-client/dist/sockjs [undefined] (required by /Volumes/T16-Skyhopper/cxone/libs/cxone-client-platform-services/src/lib/notification/notification.service.ts)

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

No branches or pull requests

1 participant