adrianmcli / truffle-react Goto Github PK
View Code? Open in Web Editor NEW⚛️ A boilerplate Truffle Box project with Create React App for rapid Ethereum Dapp development
⚛️ A boilerplate Truffle Box project with Create React App for rapid Ethereum Dapp development
i have install web3,truffle ,python and so on.
npm run start it works .but the edge tell me that Failed to load web3, accounts, or contract. Check console for details. and the console tells that No web3 instance injected, using Local web3.
i don't change any files.i have metamask ,but the port 8545 shows me that it can't connect.i have no idea,please help me! thanks
$ npm run start
localhost:3000 says "Failed to load web3, accounts, or contract. Check console for details"
Injected web3 detected.
App.js:28 TypeError: Cannot read property 'address' of undefined
at Object._callee$ (getContractInstance.js:4)
at tryCatch (runtime.js:62)
at Generator.invoke [as _invoke] (runtime.js:296)
at Generator.prototype.(:3000/anonymous function) [as next] (http://localhost:3000/static/js/bundle.js:63142:21)
at step (registerServiceWorker.js:117)
at registerServiceWorker.js:117
Is it a problem because MetaMask already injected an old 0.20 web3 version ? How is this handled best?
This message appears after doing a fresh migration, because the contracts file is both in the builds directory and the src you will need to delete the contracts folder in the src directory and copy it from the build directory each time a new build folder is created...
Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
The above warning is shown when compiling the contracts.
Truffle now supports 0.4.24 of Solidity. We should probably update the pragma statement.
`sum@XPS15 ~/DEV/truffle-react/client $ npm run test
[email protected] test /home/sum/DEV/truffle-react/client
react-scripts test --env=jsdom
internal/fs/watchers.js:167
throw error;
^
Error: ENOSPC: no space left on device, watch '/home/sum/DEV/truffle-react/client/node_modules/async-each'
at FSWatcher.start (internal/fs/watchers.js:161:26)
at Object.watch (fs.js:1218:11)
at NodeWatcher.watchdir (/home/sum/DEV/truffle-react/client/node_modules/sane/src/node_watcher.js:150:20)
at Walker. (/home/sum/DEV/truffle-react/client/node_modules/sane/src/node_watcher.js:374:12)
at Walker.emit (events.js:182:13)
at /home/sum/DEV/truffle-react/client/node_modules/walker/lib/walker.js:69:16
at go$readdir$cb (/home/sum/DEV/truffle-react/client/node_modules/graceful-fs/graceful-fs.js:149:14)
at FSReqWrap.oncomplete (fs.js:139:20)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] test: react-scripts test --env=jsdom
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/sum/.npm/_logs/2018-08-11T11_18_32_643Z-debug.log`
Unfortunately I don't have a Windows machine, but in order for Windows support to work, we need to make sure that the symlink is created automatically when unboxing happens. Currently, that is done by running an NPM script npm run link-contracts
, but since this uses ln -s
, it only works on Linux and Mac.
We basically need a "cross-env
" way of doing this.
Could you please add a license file? Everything else looks great.
localhost:3000 says
Failed to load web3, accounts, or contract. Check console for details
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.