Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run the project #2

Open
geek2roro opened this issue Dec 9, 2019 · 0 comments
Open

Run the project #2

geek2roro opened this issue Dec 9, 2019 · 0 comments

Comments

@geek2roro
Copy link

geek2roro commented Dec 9, 2019

Hi ,

How can I run the project?

1. I clone it

git clone url
npm install
npm install web3
npm run build
npm run serve

That open localhost:5000

2. Then I run ganache

npm install -g ganache-cli
ganache-cli

3. Then install truffle

npm install -g truffle@v4.0.1
truffle compile
truffle migrate

4. In metamask:
I connect to the same ganache network 127.0.0.1:8545

The products displayed... However, the below error is shows.

Any help, please?

Uncaught (in promise) Error: Purchase has not been deployed to detected network (network/artifact mismatch) at bundle.js:114645
(anonymous) @ bundle.js:114645
Promise.then (async)
handleItemBuy @ bundle.js:70418
ReactErrorUtils.invokeGuardedCallback @ bundle.js:28386
executeDispatch @ bundle.js:28170
executeDispatchesInOrder @ bundle.js:28193
executeDispatchesAndRelease @ bundle.js:21693
executeDispatchesAndReleaseTopLevel @ bundle.js:21704
forEachAccumulated @ bundle.js:34814
processEventQueue @ bundle.js:21904
runEventQueueInBatch @ bundle.js:59392
handleTopLevel @ bundle.js:59402
handleTopLevelImpl @ bundle.js:62686
perform @ bundle.js:24014
batchedUpdates @ bundle.js:62603
batchedUpdates @ bundle.js:12445
dispatchEvent @ bundle.js:62761

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

No branches or pull requests

1 participant