TypeError: Cannot read properties of undefined (reading 'Web3Provider')
at connectingWihContract (apiFeature.js:41:43)
at async fetchData (ChatAppContext.js:30:24)
const provider = new ethers.providers.Web3Provider(connection);
Const Provider=new ethers.Providers.Web3Provider(Connection);
This Line giving me errors
这一行给了我错误
TypeError: Cannot read properties of undefined (reading 'Web3Provider')
at connectingWihContract (apiFeature.js:41:43)
at async fetchData (ChatAppContext.js:30:24)
TypeError:无法在异步FetchData(ChatAppConext.js:30:24)的ConnectingWihContract(apiFeature.js:41:43)上读取未定义的属性(读取“”Web3Provider“”)
更多回答
Hi there, please explain your issue in details , some source code samples to reproduce your issue would be also useful~
您好,请详细解释您的问题,一些源代码样本,以再现您的问题也是有用的~
优秀答案推荐
我是一名优秀的程序员,十分优秀!