question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Property 'provider' does not exist on type 'JsonRpcProvider'

See original GitHub issue

It happens when updating @usedapp/core from 0.9.1 to 0.10.0

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
rzadpcommented, Aug 10, 2022

It is clearly a Web3Provider instance, but if I check it with instanceof, it is always false

import { Web3Provider } from "@ethersproject/providers"

console.log(library instanceof Web3Provider) // Always false

This might be a mistmatch of your @ethersproject/providers version on what is being used inside of useDapp.

UseDapp 1.0 allow you to set your own provider in readOnlyUrls, so you can feed your own provider into the config which will work the way you expect.

0reactions
SeanZomcommented, Mar 21, 2022

@Doko-Demo-Doa

library instanceof Web3Provider; // true

works for me when library is available

did you check if library isn’t ready when you log it?


I think there is still a problem. If I check its instance:

image

It is clearly a Web3Provider instance, but if I check it with instanceof, it is always false

import { Web3Provider } from "@ethersproject/providers"

console.log(library instanceof Web3Provider) // Always false
Read more comments on GitHub >

github_iconTop Results From Across the Web

JsonRpcProvider - ethers
The JSON-RPC API is a popular method for interacting with Ethereum and is available in all major Ethereum node implementations (e.g. Geth and...
Read more >
JsonRpcProvider class - ethers library - Dart API - Pub.dev
Performs a reverse lookup of the address in ENS using the Reverse Registrar. If the name does not exist, or the forward lookup...
Read more >
node.js - The method eth_signTypedData_v4 does not exist/is ...
getSigner() . After that I was able to successfully sign the typed data with await mySigner._signTypedData(domain, types, voucher) .
Read more >
jsonrpcprovider could not detect network - You.com - You.com
On the client side, I'm creating the provider this way: new ethers.providers.JsonRpcProvider('http://geth:8545') . geth is the node container hostname and ...
Read more >
Provider - Ethers.js
If there is no avatar found (or the owner of any NFT does not match the name owner), null is returned. The AvatarInfo...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found