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)
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)