Giter Club home page Giter Club logo

truffle-webpack-demo's People

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  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  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  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

truffle-webpack-demo's Issues

Could not find built Migrations contract

After cloning and running npm install,

$ WEB3_RPC_LOCATION=http://localhost:8545 npm run start

Results in:

> node ./scripts/start.js

Starting the development server...

[TRUFFLE SOLIDITY] Searching for truffle.js
[TRUFFLE SOLIDITY] Found Truffle config at: /Users/USER/truffle-webpack-demo/truffle.js
[TRUFFLE SOLIDITY] Compiling ConvertLib.sol...
[TRUFFLE SOLIDITY] Compiling MetaCoin.sol...
[TRUFFLE SOLIDITY] Compiling Migrations.sol...
[! TRUFFLE SOLIDITY ERROR] Error: Could not find built Migrations contract.
Failed to compile.

Error in ./contracts/MetaCoin.sol
Module build failed: Error: Could not find built Migrations contract.
 @ ./src/components/AccountList/AccountListContainer.js 33:16-49

I'm brand new to truffle, so apologies if this suggests something obvious.

Demo no longer works with truffle 3

Issue

Does not work with truffle 3

Steps to Reproduce

  1. install updated truffle
  2. in command line enter truffle init
  3. npm start will fail

Expected Behavior

I expect this demo to work with truffle 3

Actual Results

Truffle 3 no longer makes js files like Truffle 2. That means the truffle-solidity-laoder does not work as expected.

Environment

  • Operating System:
  • Truffle version: 3
  • Testrpc version: 3.0.3
  • Ethereum client: none
  • node version: 7.4.0
  • npm version: 4.05

Error when try to import uPort

Issue

Error on npm start

Steps to Reproduce

import uPort lib in index.js

Expected Behavior

No error on compile

Actual Results

Failed to compile.

Error in .//uport-registry/build/contracts/UportRegistry.sol.js
Syntax error: Expected "contract", "import", "library", "pragma", "using", comment, end of input, end of line or whitespace but "v" found.
@ ./
/uport-registry/lib/uportregistry.js 22:24-74

Update contracts to comply with latest solidity compiler (solc: ^0.4.0)

To comply with the latest version of the solidity compiler (solc ^0.4.0) the solidity files must be updated accordingly:

  • Add pragma solidity ^0.4.0; to the top of each .sol file
  • The restricted() modifier in Migrations.sol is missing a semicolon and must be changed to modifier restricted() { if (msg.sender == owner) _; }

ReferenceError: artifacts is not defined

Issue

[email protected] start /home/kpit/Desktop/webpack_demo/truffle_webpack
node ./scripts/start.js

Starting the development server...

[TRUFFLE SOLIDITY] Writing temporary contract build artifacts to /home/kpit/Desktop/webpack_demo/truffle_webpack/.truffle-solidity-loader
[TRUFFLE SOLIDITY] Compiling ConvertLib.sol...
[TRUFFLE SOLIDITY] Compiling MetaCoin.sol...
[TRUFFLE SOLIDITY] Writing artifacts to ./.truffle-solidity-loader
[TRUFFLE SOLIDITY] COMPILATION FINISHED
[TRUFFLE SOLIDITY] RUNNING MIGRATIONS
[TRUFFLE SOLIDITY] Running migration: 1_initial_migration.js

/home/kpit/Desktop/webpack_demo/truffle_webpack/migrations/1_initial_migration.js:1
var Migrations = artifacts.require("../contracts/Migrations.sol");
^
ReferenceError: artifacts is not defined
at /home/kpit/Desktop/webpack_demo/truffle_webpack/migrations/1_initial_migration.js:1:18
at ContextifyScript.Script.runInContext (vm.js:35:29)
at ContextifyScript.Script.runInNewContext (vm.js:41:15)
at /home/kpit/Desktop/webpack_demo/truffle_webpack/node_modules/truffle/lib/require.js:78:14
at tryToString (fs.js:455:3)
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:442:12)

npm ERR! Linux 4.2.0-27-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "start"
npm ERR! node v6.10.0
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: node ./scripts/start.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node ./scripts/start.js'.
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 truffle-webpack package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./scripts/start.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs truffle-webpack
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls truffle-webpack
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:

Steps to Reproduce

npm run start

  • Operating System: Ubuntu 14.04 LTE
  • Truffle version: 3.1.2
  • Testrpc version: 3.0.3
  • Ethereum client: geth
  • node version: 6.10.0
  • npm version: 3.10.10

error when using with web3 1.0-beta

There is an error when using with web3 1.0-beta.

./contracts/Greeter.sol
Module not found: Can't resolve 'web3/lib/web3/event.js'

would you please add the support to web3 1.0-beta?

Missing dependencies - truffle/lodash.merge

When attempting to npm install it is missing the dependencies: truffle and lodash.merge which I had to npm install separately.

▶ WEB3_RPC_LOCATION=http://localhost:8545 npm run build

> [email protected] build /Users/jwheaton/Projects/truffle-webpack-demo
> node ./scripts/build.js

Failed to create a production build. Reason:
Cannot find module 'truffle/lib/contracts'
▶ WEB3_RPC_LOCATION=http://localhost:8545 npm run build

> [email protected] build /Users/jwheaton/Projects/truffle-webpack-demo
> node ./scripts/build.js

Failed to create a production build. Reason:
Cannot find module 'lodash.merge'

dependency injection when running webpack dev server with babel-preset-react-hmre

Issue

After running npm start , it fails because of dependency injection related tobabel-preset-react-hmre.

As explained here
PR to fix the bug: #10

Steps to Reproduce

Run:
npm install
npm start

Expected Behavior

Run the project without failing.

Actual Results

MLWES37454:truffle-webpack-demo j.bouteloup$ npm start

> [email protected] start /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo
> node ./scripts/start.js

Starting the development server...

[TRUFFLE SOLIDITY] Writing temporary contract build artifacts to /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/.truffle-solidity-loader
[TRUFFLE SOLIDITY] Compiling ConvertLib.sol...
[TRUFFLE SOLIDITY] Compiling MetaCoin.sol...
[TRUFFLE SOLIDITY] Writing artifacts to ./.truffle-solidity-loader
[TRUFFLE SOLIDITY] COMPILATION FINISHED
[TRUFFLE SOLIDITY] RUNNING MIGRATIONS
Failed to compile.

Error in ./src/App.js
Module not found: /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/redbox-react/lib/index.js in /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/src
resolve file
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/redbox-react/lib/index.js doesn't exist
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/redbox-react/lib/index.js.js doesn't exist
resolve directory
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/redbox-react/lib/index.js doesn't exist (directory default file)
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/redbox-react/lib/index.js/package.json doesn't exist (directory description file)
[/Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/redbox-react/lib/index.js]
[/Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/redbox-react/lib/index.js.js]
 @ ./src/App.js 7:13-163

Error in ./src/App.js
Module not found: /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-catch-errors/lib/index.js in /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/src
resolve file
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-catch-errors/lib/index.js doesn't exist
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-catch-errors/lib/index.js.js doesn't exist
resolve directory
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-catch-errors/lib/index.js doesn't exist (directory default file)
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-catch-errors/lib/index.js/package.json doesn't exist (directory description file)
[/Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-catch-errors/lib/index.js]
[/Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-catch-errors/lib/index.js.js]
 @ ./src/App.js 11:14-180

Error in ./src/App.js
Module not found: /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-hmr/lib/index.js in /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/src
resolve file
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-hmr/lib/index.js doesn't exist
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-hmr/lib/index.js.js doesn't exist
resolve directory
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-hmr/lib/index.js doesn't exist (directory default file)
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-hmr/lib/index.js/package.json doesn't exist (directory description file)
[/Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-hmr/lib/index.js]
[/Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-hmr/lib/index.js.js]
 @ ./src/App.js 19:14-171

Error in ./src/components/AccountList/AccountList.js
Module not found: /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/redbox-react/lib/index.js in /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/src/components/AccountList
resolve file
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/redbox-react/lib/index.js doesn't exist
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/redbox-react/lib/index.js.js doesn't exist
resolve directory
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/redbox-react/lib/index.js/package.json doesn't exist (directory description file)
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/redbox-react/lib/index.js doesn't exist (directory default file)
[/Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/redbox-react/lib/index.js]
[/Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/redbox-react/lib/index.js.js]
 @ ./src/components/AccountList/AccountList.js 7:13-163

Error in ./src/components/AccountList/AccountList.js
Module not found: /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-catch-errors/lib/index.js in /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/src/components/AccountList
resolve file
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-catch-errors/lib/index.js doesn't exist
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-catch-errors/lib/index.js.js doesn't exist
resolve directory
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-catch-errors/lib/index.js/package.json doesn't exist (directory description file)
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-catch-errors/lib/index.js doesn't exist (directory default file)
[/Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-catch-errors/lib/index.js]
[/Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-catch-errors/lib/index.js.js]
 @ ./src/components/AccountList/AccountList.js 11:14-180

Error in ./src/components/AccountList/AccountList.js
Module not found: /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-hmr/lib/index.js in /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/src/components/AccountList
resolve file
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-hmr/lib/index.js doesn't exist
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-hmr/lib/index.js.js doesn't exist
resolve directory
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-hmr/lib/index.js/package.json doesn't exist (directory description file)
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-hmr/lib/index.js doesn't exist (directory default file)
[/Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-hmr/lib/index.js]
[/Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-hmr/lib/index.js.js]
 @ ./src/components/AccountList/AccountList.js 19:14-171

Error in ./src/components/SendCoin/SendCoin.js
Module not found: /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/redbox-react/lib/index.js in /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/src/components/SendCoin
resolve file
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/redbox-react/lib/index.js doesn't exist
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/redbox-react/lib/index.js.js doesn't exist
resolve directory
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/redbox-react/lib/index.js/package.json doesn't exist (directory description file)
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/redbox-react/lib/index.js doesn't exist (directory default file)
[/Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/redbox-react/lib/index.js]
[/Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/redbox-react/lib/index.js.js]
 @ ./src/components/SendCoin/SendCoin.js 7:13-163

Error in ./src/components/SendCoin/SendCoin.js
Module not found: /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-catch-errors/lib/index.js in /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/src/components/SendCoin
resolve file
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-catch-errors/lib/index.js doesn't exist
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-catch-errors/lib/index.js.js doesn't exist
resolve directory
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-catch-errors/lib/index.js/package.json doesn't exist (directory description file)
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-catch-errors/lib/index.js doesn't exist (directory default file)
[/Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-catch-errors/lib/index.js]
[/Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-catch-errors/lib/index.js.js]
 @ ./src/components/SendCoin/SendCoin.js 11:14-180

Error in ./src/components/SendCoin/SendCoin.js
Module not found: /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-hmr/lib/index.js in /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/src/components/SendCoin
resolve file
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-hmr/lib/index.js doesn't exist
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-hmr/lib/index.js.js doesn't exist
resolve directory
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-hmr/lib/index.js/package.json doesn't exist (directory description file)
  /Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-hmr/lib/index.js doesn't exist (directory default file)
[/Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-hmr/lib/index.js]
[/Users/j.bouteloup/Projects/Perso/Ethereum/truffle-webpack-demo/node_modules/babel-preset-react-hmre/node_modules/react-transform-hmr/lib/index.js.js]
 @ ./src/components/SendCoin/SendCoin.js 19:14-171

Environment

  • Operating System: MAC OS EL CAPITAN 10.11.6 (15G1108)
  • Truffle version: 2.0.0
  • Testrpc version: EthereumJS TestRPC v3.0.1
  • Ethereum client: Geth Version: 1.4.18-stable-c72f5459
  • node version:v5.12.0
  • npm version:3.8.6

Branch Fix

PR: #10

Uncaught Error: Cannot find deployed address: MetaCoin not deployed or address not set

Issue

Get an error message on chrome dev tool Uncaught Error: Cannot find deployed address: MetaCoin not deployed or address not set when updating the default balance to another value.

Steps to Reproduce

  1. Start testrpc
  2. Starts the development server
  3. Go to http://localhost:3000/
  4. Change the value of the default balance in contracts/MetaCoin.sol.
  5. Wait for hot reload and see error message in the chrome dev tool.

Expected Behavior

To refresh the value on the page.

Actual Results

After changing the value of the default balance in contracts/MetaCoin.sol from 10000 to another integer (like 50000), the value is not always updated and a message error is displayed on the console:
Uncaught Error: Cannot find deployed address: MetaCoin not deployed or address not set

Restarting the testrpc and dev server fixes the issue.

Looks like it comes from:

Contract.deployed = function() {
    if (!this.address) {
      throw new Error("Cannot find deployed address: MetaCoin not deployed or address not set.");
    }

    return this.at(this.address);
  };

Environment

  • Operating System:Mac Os El Capitan 10.11.6
  • Truffle version: v2.0.4
  • Testrpc version: v3.0.0
  • Ethereum client:Geth Version: 1.4.18-stable-c72f5459
  • node version: v4.6.0
  • npm version: 2.15.9

Out-of-gas error when attempting build/start

I have testrpc running with default options, but have also tried seeding an account with millions of ETH and setting gasPrice to 0, but I still get the following error. It's not obvious from this project's or testrpc's README on how to avoid this issue.

▶ WEB3_RPC_LOCATION=http://localhost:8545 npm run start

> [email protected] start /Users/jwheaton/Projects/truffle-webpack-demo
> node ./scripts/start.js

Starting the development server...

[TRUFFLE SOLIDITY] Searching for truffle.js
[TRUFFLE SOLIDITY] Found Truffle config at: /Users/jwheaton/Projects/truffle-webpack-demo/truffle.js
[TRUFFLE SOLIDITY] Setting network to 'default' for compilation and contract provisioning
[TRUFFLE SOLIDITY] Setting network_id to 'default' for compilation and contract provisioning
[TRUFFLE SOLIDITY] Compiling ConvertLib.sol...
[TRUFFLE SOLIDITY] Compiling MetaCoin.sol...
[TRUFFLE SOLIDITY] Compiling Migrations.sol...
[TRUFFLE SOLIDITY] Writing artifacts to ./../../../../var/folders/tv/62_htc9n00d5mmcq3j0bmlbsbcr9_3/T/webpack-truffle116911-33073-151iuhn
[TRUFFLE SOLIDITY] Running migration: 1_initial_migration.js
[TRUFFLE SOLIDITY]   Deploying Migrations...
[TRUFFLE SOLIDITY] Error encountered, bailing. Network state unknown. Review successful transactions manually.
[! TRUFFLE SOLIDITY ERROR] Error: VM Exception while processing transaction: out of gas
Failed to compile.

Error in ./contracts/MetaCoin.sol
Module build failed: Error: VM Exception while processing transaction: out of gas
 @ ./src/components/AccountList/AccountListContainer.js 33:16-49

Unable to start Dev server.

Issue

Unable to start dev server. For some reason it doesn't seem to find truffle.js config

Steps to Reproduce

$ WEB3_RPC_LOCATION=http://localhost:8545 npm run start

Expected Behavior

App to start with default settings.

Actual Results

I am getting the below log

$ WEB3_RPC_LOCATION=http://localhost:8545 npm run start

[email protected] start E:\Dev\Digirupt\Code
node ./scripts/start.js

Starting the development server...

[TRUFFLE SOLIDITY] No Truffle config file found.
[TRUFFLE SOLIDITY] Setting network to 'default' for compilation and contract provisioning
[TRUFFLE SOLIDITY] Setting network_id to 'default' for compilation and contract provisioning
Failed to compile.

Error in ./contracts/MetaCoin.sol
Module build failed: Error: You must specify the location of the Truffle migrations directory in the loader query string. (migrations_directory)
@ ./src/components/AccountList/AccountListContainer.js 33:16-49

Environment

  • Operating System: Win 10 Home (x64)
  • Truffle version: 2.1.1
  • Testrpc version: 3.0.1
  • Ethereum client: geth
  • node version: 6.9.1
  • npm version: 3.10.9

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.