I'm running into an issue while trying to incorporate SockJS from the sockjs-client library. Currently, I am working with Aurelia and typescript. However, when attempting to import it using
import { SockJS } from 'sockjs-client';
I encounter this error in VS2015: "Module sockjs-client has no exported member "SockJS""
This is how my package.json file appears:
"jspm": {
"dependencies": {
//......
"sockjs": "npm:sockjs@^0.3.17",
"sockjs-client": "npm:sockjs-client@^1.1.1",
"stompjs": "npm:stompjs@^2.3.3",
},
"devDependencies": {}
}
If anyone has any suggestions or solutions, please let me know. Your help would be greatly appreciated.