Git Product home page Git Product logo

Comments (13)

ColdDevil avatar ColdDevil commented on May 24, 2024 5

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.

wangki avatar wangki commented on May 24, 2024 4

I fixed this by deleting all the .json files under build/contracts and
truffle compile truffle migrate

Again

from drizzle-box.

jkosior avatar jkosior commented on May 24, 2024 1

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.

sajclarke avatar sajclarke commented on May 24, 2024

@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.

pablog12 avatar pablog12 commented on May 24, 2024

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.

moshebeeri avatar moshebeeri commented on May 24, 2024

Having the same issue
image

from drizzle-box.

wangki avatar wangki commented on May 24, 2024

Well, it seems it doesn't really fix the issue

from drizzle-box.

wangki avatar wangki commented on May 24, 2024

#18
"I had the same errors - fixed by changing my Metamask network to: localhost:8545 (the default Ganache port)"

from drizzle-box.

awrgold avatar awrgold commented on May 24, 2024

@ColdDevil this worked for me as well. Thanks for saving me hours of work!

from drizzle-box.

gdbjohnson avatar gdbjohnson commented on May 24, 2024

@ColdDevil's solution worked for me too. Probably only need to edit the package.json file.

from drizzle-box.

briankostar avatar briankostar commented on May 24, 2024

@ColdDevil thanks, that actually did the trick

from drizzle-box.

stale avatar stale commented on May 24, 2024

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.

stale avatar stale commented on May 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.