web3@1.0 - 'cb is not a function'
Closed this issue · 6 comments
haydenadams commented
haydenadams commented
Here's the code:
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import { Web3Provider } from 'react-web3';
ReactDOM.render(
<Web3Provider>
<App />, document.getElementById('root')
</Web3Provider>
);
analogrytm commented
I have the same error with the same code. But I fixed the issue by removing references to the web3 libraries from other parts of my of application. I now simply check for window.web3 and use this object rather than importing one.
haydenadams commented
coopermaruyama commented
@haydenadams, thanks for this. I'm going to look into this now. My assumption is web3 1.0 has a different API incompatible with this react-web3. Going to see if I can make it work with both.
coopermaruyama commented
@haydenadams I have a WIP which has 1 failing test left on web3-v1 branch. Will release soon.
coopermaruyama commented
closing this for now in favor of #16