Giter Site home page Giter Site logo

dao1901's People

Contributors

acathla-fr avatar altais avatar jdetychey avatar julienbrg avatar kurthalex avatar lekz974 avatar msornay avatar nammalvar avatar slashbinslashnoname avatar troynt avatar vivi3n avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dao1901's Issues

mocha test failed and instructions not clear

Chapter 'Run the app with Testrpc'

  • The README instructions don't explicitly say when to open a new shell.
  • The mocha test fails at 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

some difficulties with the recommended way

(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.0

npm 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.js

ERROR 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.js

ERROR 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

Error with the command node_modules/.bin/testrpc

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.