Uncaught (in promise) TypeError: Cannot read property 'pCity' of undefined

假如想象 提交于 2020-04-30 06:36:50

问题


I am getting the error TypeError: Cannot read property 'pCity' of undefined. I am injecting web3 in angular and getting this error for every Web3 function call. This is working fine outside angular. I have imported the web3.js file in angular.json like this:

"styles": [
              "src/styles.scss"
            ],
            "scripts": ["https://cdn.jsdelivr.net/npm/web3@1.2.6/dist/web3.min.js"]
          } 

This is being rejected here however was resolved in a simple js file called from an html file. See the rejected promise error here

来源:https://stackoverflow.com/questions/61373072/uncaught-in-promise-typeerror-cannot-read-property-pcity-of-undefined

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!