Skip to content
This repository has been archived by the owner on Sep 27, 2019. It is now read-only.

Drizzle 1.1.0 failed with project that works 6 days ago with 1.0.1! #32

Closed
LeeDark opened this issue Mar 31, 2018 · 6 comments
Closed

Comments

@LeeDark
Copy link

LeeDark commented Mar 31, 2018

First of all drizzle.js (/node_modules/drizzle/drizzle.js) now is minimized and has strange date: 26.10.1985.

My dapp returns this errors in the console:

Error initializing Drizzle:
__stack_frame_overlay_proxy_console__ @ index.js:2178
TypeError: Cannot read property 'blocks' of undefined
    at drizzle.js:8
    at _ (drizzle.js:13)
    at Generator._invoke (drizzle.js:13)
    at Generator.t.(:3000/anonymous function) [as next] (http://localhost:3000/static/js/bundle.js:8248:76586)
    at P (drizzle.js:8)
    at Object.y [as cont] (drizzle.js:8)
......

I am noob with all these tools and just worked under tutorial:
http://maksimivanov.com/posts/ethereum-react-dapp-tutorial-part-2

@tarrencev
Copy link

Make sure you are passing "polls" in the drizzle options like:

const options = {
  contracts: [...],
  events: {
    ...
  },
  polls: {},
}

@abustamam
Copy link

@tarrencev That worked like a charm. This should be added to the docs then.

@morrigan
Copy link

morrigan commented Apr 20, 2018

polls but also events should be passed!

@OnlyOneJMJQ
Copy link
Contributor

Ahh this is because of poor key checking on the options object, v1.1.2 fixes this so that in the future you do not HAVE to include polls.

@morrigan v1.1.3 fixes this for the events key as well!

@jamjamlong266
Copy link

@LeeDark is app is running now ?

@bellaj
Copy link

bellaj commented Jul 4, 2018

sometimes you need only to unlock metamask if you use it

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants