Comments (9)
It worked, but I had to left it like this, next is just giving errors importing NetworkContextName
const Web3ProviderNetwork =
typeof window !== 'undefined' && createWeb3ReactRoot('NETWORK')
from components.
Please use components version 7.3.5
and sdk version 5.3.2
from components.
we have a mapping for sdk and components here
https://components-dusky.vercel.app/?path=/story/guide-introduction--page#components---sdk-version-mapping
from components.
Please use components version
7.3.5
and sdk version5.3.2
In our application we was using version 6, now after updating to version 7.3.5 i started getting the module not found error
Module not found: Can't resolve '@pangolindex/governance/artifacts/contracts/GovernorAlpha.sol/GovernorAlpha.json'
from components.
so, please add @pangolindex/governance
in dev dependencies with version 1.2.0
from components.
I add it but it seems there is still something missing, now I am getting the error.
Error: Invariant failed: Invalid key NETWORK
from components.
Now you need to wrap you app with this
// main.tsx
import { createWeb3ReactRoot, Web3ReactProvider } from '@web3-react/core';
import { NetworkContextName} from '@pangolindex/components';
import { Web3Provider } from '@ethersproject/providers';
const Web3ProviderNetwork = createWeb3ReactRoot(NetworkContextName);
function getLibrary(provider: any): Web3Provider {
try {
const library = new Web3Provider(provider, 'any')
library.pollingInterval = 15000
return library
} catch (error) {
return provider
}
}
ReactDOM.render(
<StrictMode>
<Web3ReactProvider getLibrary={getLibrary}> // <-------------------- this
<Web3ProviderNetwork getLibrary={getLibrary}> // <-------------------- and this
<App />
</Web3ProviderNetwork>
</Web3ReactProvider>
</StrictMode>,
document.getElementById('root')
);
from components.
Hey @tiago138 you have more issue, if no I will close this issue as resolved, we improve our docs about how to install and use in these prs
from components.
I don't have any more issues, you can close it, thanks.
from components.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from components.