Closed Evan1115 closed 4 months ago
The latest 7.x releases only support this library to be used as modules. This may cause issues if a toolchain tries to use it as a commonjs module. While the latest node uses modules by default, quite a few popular toolchains do not.
A temporary solution can be to switch to a lower version of this library or to use transpilation.
You might also try the solution suggested at https://github.com/stomp-js/stompjs/pull/538
Hi, recently when i was running the jest test for my angular project, I keep getting 'Cannot find module '@stomp/stompjs' error. Does anyone know how to solve it?![image](https://github.com/stomp-js/stompjs/assets/66901501/cb5c1fad-f22d-409f-bcab-e28ff1cac1b9)