Module not found: Error: Can't resolve 'crypto'

前端 未结 6 1796
萌比男神i
萌比男神i 2020-12-10 01:34

I am getting the following list of errors when I run ng serve.

My package JSON is as follows:

{   \"name\": \"ProName\",   \"version\":          


        
6条回答
  •  借酒劲吻你
    2020-12-10 01:59

    aws-sign2 is a NodeJS package (and crypto is a NodeJS module), but it looks like you're dealing with a web application. It makes sense that the crypto module is not available in that environment.

    Would it be possible to complete what you need to do server-side? Otherwise, you may need to look for another package.

提交回复
热议问题