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 \'/../../../.../
To avoid installing random packages, you could add this into your Webpack configuration.
node: { net: 'empty', },
The issue is caused by expecting the net package which is a package from Node.JS and does not exist in the browser.
If you want more information and explanations you can find it here.