Module not found: Error: Can't resolve 'net' in 'node_modules/stompjs/lib'

S34N picture S34N · Jan 20, 2019 · Viewed 21.4k times · Source

Got an issue where a stompJS-lib was not found, upon which I got the following error message:

Module not found: Error: Can't resolve 'net' in '/../../../.../../../angular-app/node_modules/stompjs/lib'

Answer

S34N picture S34N · Jan 20, 2019

solved it with the following command:

 npm i net -S