Open graham-u opened 4 years ago
Hello @grahamutton,
Have you installed a blockchain package such as ganache-cli
or parity
?
I'm having the same issue. I am using Buidler EVM as my local blockchain, which seems generally compatible with all other tools I've been using (ie. Truffle, web3, etc.)
I can also confirm that using ganache-cli
results in the same error. And it's not clear why a blockchain package would result in this error, as it looks like some kind of import issue. Any thoughts?
@grahamutton Sorry for the late response. The documentation is not up to date with the example code. The monorepo's example projects is the most updated testing/working reference.
@cds-amal Yeah, it is also with hooks.
I followed this guide: https://www.trufflesuite.com/docs/drizzle/quickstart
...which went fine then proceeded to the linked drizzle-react guide here https://github.com/trufflesuite/drizzle/tree/master/packages/react-plugin
But the line: import {DrizzleContext} from "drizzle-react";
Causes this error in my dev environment: error - ./node_modules/drizzle-react/dist/drizzle-react.js Module not found: Can't resolve 'drizzle' in '/home/*/projects/personal****/node_modules/drizzle-react/dist'
So to me it looks like drizzle-react is looking for drizzle incorrectly or in the wrong place?
The https://www.trufflesuite.com/docs/drizzle/quickstart tutorial has me using npm install --save @drizzle/store to get drizzle, but I think I saw the earlier way was npm install drizzle, but I saw on an issue that this is outdated and it also gave me errors as follows:
Could anyone advise how to get set up? I only need drizzle and drizzle-react working I believe.
Thanks