truffle-box / react-box

Truffle, Webpack and React boilerplate.
https://truffle-box.github.io/
MIT License
736 stars 251 forks source link

contract deployment errors when using express server #18

Closed armova closed 5 years ago

armova commented 7 years ago

I am running my project successfully with contracts deployed to a local testrpc using

truffle compile
truffle migrate
npm run start

Then when I do npm run build and set up my express server to load index.html from build_webpack the app loads and throws this error:

Uncaught (in promise) Error: Token has not been deployed to detected network (network/artifact mismatch)

The contracts are deployed and the web3 httpProvider is connecting correctly to my local testRPC. Everything runs perfectly when doing npm run start and not serving from express.

Will appreciate any help.

Jacke commented 6 years ago

Same 👍

vinodrajendran001 commented 6 years ago

same issue here

williamluke4 commented 6 years ago

Same, anyone got any pointers?

kunalsharma commented 6 years ago

Any solution on this issue

stale[bot] commented 5 years ago

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.

stale[bot] commented 5 years ago

This issue has been closed, but can be re-opened if further comments indicate that the problem persists. Feel free to tag maintainers if no there is no reply to further comments.