Git Product home page Git Product logo

Comments (8)

okstaticzero avatar okstaticzero commented on May 27, 2024 2

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

from drizzle-box.

ColdDevil avatar ColdDevil commented on May 27, 2024 2

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.

aaronbarnardsound avatar aaronbarnardsound commented on May 27, 2024 2

Thanks @ColdDevil that worked for me!!

from drizzle-box.

xtellurian avatar xtellurian commented on May 27, 2024

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.

kamescg avatar kamescg commented on May 27, 2024

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.

brtkwr avatar brtkwr commented on May 27, 2024

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.

ColdDevil avatar ColdDevil commented on May 27, 2024

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.

OnlyOneJMJQ avatar OnlyOneJMJQ commented on May 27, 2024

Merged #30 to fix this up!

@brtknr @ColdDevil I'm getting the same, tracking here: #32

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.