Comments (13)
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.
I fixed this by deleting all the .json
files under build/contracts
and
truffle compile truffle migrate
Again
from drizzle-box.
I have the same error, also tried switching metamask to localhost:8545.
I have another error in Chrome Console:
Error initializing Drizzle.
Then the one from above.
How can I fix it?
Thanks in advance.
from drizzle-box.
@roshisoftsol I fixed this error by switching to localhost:8545 on Metamask. If you changed the port you're running ganache on (e.g. 7545) then you can change metamask to run on that.
from drizzle-box.
I have that same error. I tried switching metamask to localhost:8545 and I still get the error.
Could you please elaborate sajclarke? I can't seem to get this to work.
Thanks in advance.
from drizzle-box.
from drizzle-box.
Well, it seems it doesn't really fix the issue
from drizzle-box.
#18
"I had the same errors - fixed by changing my Metamask network to: localhost:8545 (the default Ganache port)"
from drizzle-box.
@ColdDevil this worked for me as well. Thanks for saving me hours of work!
from drizzle-box.
@ColdDevil's solution worked for me too. Probably only need to edit the package.json file.
from drizzle-box.
@ColdDevil thanks, that actually did the trick
from drizzle-box.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from drizzle-box.
This issue has been closed, but can be re-opened if further comments indicate that the problem persists. Feel free to tag maintainers if there is no reply to further comments.
from drizzle-box.
Related Issues (20)
- 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
- '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
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.