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

前端 未结 6 1290
夕颜
夕颜 2021-02-18 20:38

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 \'/../../../.../         


        
6条回答
  •  礼貌的吻别
    2021-02-18 21:28

    webpack v5 (add to webpack.config.js in module.exports):

    resolve: {
        fallback: {
            net: false
        }
    },
    

提交回复
热议问题