asseth / dao1901 Goto Github PK
View Code? Open in Web Editor NEWFrench 1901's Law for non-profit organizations, now on Ethereum
French 1901's Law for non-profit organizations, now on Ethereum
npm run test
:ERROR in ./.tmp/mocha-webpack/e743c372226739e0682896e6539ecf15-entry.js
Module not found: Error: Cannot resolve 'file' or 'directory' ../../tests/contracts in /home/vagrant/projects/dao1901/.tmp/mocha-webpack
resolve file
resolve directory
/home/vagrant/projects/dao1901/tests/contracts doesn't exist
@ ./.tmp/mocha-webpack/e743c372226739e0682896e6539ecf15-entry.js 3:19-66
And :
npm ERR! Linux 3.13.0-105-generic
npm ERR! argv "/opt/node-v6.9.1-linux-x86/bin/node" "/usr/local/bin/npm" "run" "test"
npm ERR! node v6.9.1
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! [email protected] test: `mocha-webpack`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] test script 'mocha-webpack'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the dao1901 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! mocha-webpack
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs dao1901
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls dao1901
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/vagrant/projects/dao1901/npm-debug.log
1000 gas was added on Dao1901Votes.vote(), commit 328d81b, but this raise an error (with testrpc at least) : "Error: base fee exceeds gas limit"
(following the README)
at "compile and migrate the contracts" stage :
╭─vagrant@asseth ~/projects/dao1901/protocol ‹master›
╰─➤ npm install
npm WARN [email protected] No repository field.
A bit later and in a new separate tab :
╭─vagrant@asseth ~/projects/dao1901/protocol ‹master›
╰─➤ npm run dev
npm ERR! Linux 3.13.0-123-generic
npm ERR! argv "/opt/node-v7.10.0-linux-x64/bin/node" "/usr/local/bin/npm" "run" "dev"
npm ERR! node v7.10.0
npm ERR! npm v4.2.0npm ERR! missing script: dev
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues
Maybe needs to be launched one directory up ?
seems to work but I have a big doubt :
ERROR in ./node_modules/dao1901-contracts/index.js
Module not found: Error: Can't resolve './build/contracts/Dao1901Members.json' in '/home/vagrant/projects/dao1901/node_modules/dao1901-contracts'
@ ./node_modules/dao1901-contracts/index.js 3:32-80
@ ./ui/redux/createStore.js
@ ./ui/index.js
@ multi (webpack)-dev-server/client?http://localhost:8085 webpack/hot/dev-server babel-polyfill react-hot-loader/patch webpack-dev-server/client?http://localhost:8085 webpack/hot/only-dev-server ./ui/index.jsERROR in ./node_modules/dao1901-contracts/index.js
Module not found: Error: Can't resolve './build/contracts/Dao1901Votes.json' in '/home/vagrant/projects/dao1901/node_modules/dao1901-contracts'
@ ./node_modules/dao1901-contracts/index.js 4:30-76
@ ./ui/redux/createStore.js
@ ./ui/index.js
@ multi (webpack)-dev-server/client?http://localhost:8085 webpack/hot/dev-server babel-polyfill react-hot-loader/patch webpack-dev-server/client?http://localhost:8085 webpack/hot/only-dev-server ./ui/index.jsERROR in ./node_modules/dao1901-contracts/index.js
Module not found: Error: Can't resolve './build/contracts/Owned.json' in '/home/vagrant/projects/dao1901/node_modules/dao1901-contracts'
@ ./node_modules/dao1901-contracts/index.js 5:23-62
@ ./ui/redux/createStore.js
@ ./ui/index.js
@ multi (webpack)-dev-server/client?http://localhost:8085 webpack/hot/dev-server babel-polyfill react-hot-loader/patch webpack-dev-server/client?http://localhost:8085 webpack/hot/only-dev-server ./ui/index.js
When I run the command node_modules/.bin/testrpc
, I have this error :
/tmp/dao1901/node_modules/ethereumjs-vm/lib/index.js:29
function VM (opts = {}) {
^
SyntaxError: Unexpected token =
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:387:25)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/tmp/dao1901/node_modules/ethereumjs-vm/index.js:1:80)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
Any idea ?
PS to run the environment with docker
:
docker run -it --rm node:4 bin/bash
cd /tmp/
git clone https://github.com/asseth/dao1901.git
cd dao1901/
npm i
node_modules/.bin/testrpc
Geth
Version: 1.4.18-stable-c72f5459
Solc 0.4.4
Dao1901Members.head() is 0 in the geth console but OK in the browser
it seems to be web3 issue, maybe multiple instances (webpack?)
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.