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

前端 未结 6 1272
夕颜
夕颜 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:31

    ERROR in ./node_modules/@google/maps/node_modules/https-proxy-agent/index.js
    Module not found: Error: Can't resolve 'net' in 'C:\.....\...\node_modules\@google\maps\node_modules\https-proxy-agent'
    ERROR in ./node_modules/@google/maps/node_modules/https-proxy-agent/index.js
    Module not found: Error: Can't resolve 'tls' in 'C:\...\....\node_modules\@google\maps\node_modules\https-proxy-agent'
    

    This is resolved by installing: npm i tls -S and then install npm i net -S

提交回复
热议问题