Comments (2)
The way the box works is that a symlink is created between the src
folder and the build
folder for the contracts
directory. This is done because Create-React-App does not allow you to require things outside of src
. As long as there is a proper symlink, everything will work fine.
However, if you just paste it in, it's likely that your JSON artifacts will become out of date. And that's when you will have trouble finding the addresses for where the contracts are deployed. This is why you say you have to copy it over every time.
It sounds like you are having issues with the symlink. Do not delete it, run npm run link-contracts
to re-instate it and it should work.
from truffle-react.
@ScottWorks check my posting on a related issue for a possible solution:
#2 (comment)
from truffle-react.
Related Issues (10)
- Need some visuals
- Failed to load web3, accounts, or contract. Check console for details. HOT 4
- npm run test - ERROR HOT 2
- localhost:3000 says "Failed to load web3, accounts, or contract. Check console for details" HOT 2
- Failed to load web3, accounts, or contract. Check console for details. HOT 1
- Add Windows support HOT 9
- License HOT 4
- Update Smart Contract to latest best practices for constructor definition
- Update Solidity version in smart contracts HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from truffle-react.