Comments (8)
I had the same errors - fixed by changing my Metamask network to: localhost:8545 (the default Ganache port)
from drizzle-box.
Okay, after 5 hours of trial&error, I found a solution. I guess it is an issue related to incompatible npm packages. This process works for me:
- open a terminal, start with an empty folder
- truffle unbox drizzle
- edit package.json and add to the dependencies section:
- "eth-block-tracker-es5": "^2.3.2"
- "web3": "1.0.0-beta.34"
- npm update (to install the aforementioned packages and to update drizzle and its components to the latest version)
- run in another terminal: ganache-cli -b 3
- truffle compile
- truffle migrate
- npm run start
from drizzle-box.
Thanks @ColdDevil that worked for me!!
from drizzle-box.
Looks like you need to deploy your contracts.
While running ganache-cli, in a separate console run:
truffle console
- attaches to ganache
then, in the truffle console, run:
compile
migrate
from drizzle-box.
From the master himself @DiscRiskandBisque
Are you using `ganache-cli` as the development blockchain?
If so, make sure it's version `6.1.0` or above.
Also, use an incognito window or disable MetaMask.
Currently Drizzle uses subscriptions to keep the store in sync by observing new block headers, making it incompatible with MetaMask.
I'm adding a polling fallback in the next version to alleviate this.
from drizzle-box.
This works but my value does not update where I would expect it to. It remains as 0
. I am guessing this isn't the expected behaviour!
from drizzle-box.
is the value updated on a page refresh? for me it was sometimes updated immediately and sometimes only after setting another value ;)
from drizzle-box.
Merged #30 to fix this up!
@brtknr @ColdDevil I'm getting the same, tracking here: #32
from drizzle-box.
Related Issues (20)
- 'npm run test' fails after unbox HOT 3
- Can't unbox on CI environments HOT 1
- home.bak.js file is not working and should be removed HOT 2
- SyntaxError: Unexpected token function HOT 3
- Error: EISDIR: illegal operation on a directory, readlink HOT 1
- uncaught at getAccounts Error: Please pass numbers as strings or BigNumber objects to avoid precision errors.
- Make it work with drizzle-react-components 1.2.1 HOT 3
- Update to use React Context API HOT 2
- NPM (6.5.0) causes - uncaught at root at root error HOT 6
- Contract not found on network ID HOT 2
- npm install with app directory fails for Drizzle HOT 1
- MM friendly truffle-config doesn't work as is HOT 1
- npm test fails
- README is inconsistent with new repositories HOT 2
- 缺少ERC20合约 HOT 3
- Box won't run HOT 5
- Issue when running 'npm install' in app directory HOT 3
- sha3 error on widows machine HOT 2
- Unbox drizzle unsuccessful HOT 2
- dewed.eth
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 drizzle-box.