Skip to content

Commit

Permalink
updated code for Truffle 5 and the newest Truffle-Webpack box
Browse files Browse the repository at this point in the history
  • Loading branch information
tomw1808 committed Jan 24, 2019
1 parent 7928b98 commit aadbea3
Show file tree
Hide file tree
Showing 63 changed files with 22,885 additions and 10,250 deletions.
37 changes: 37 additions & 0 deletions FAQ.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,42 @@
# FAQ (Known Problems)

## Truffle 5.0.2 and Webpack 3 Updates

Truffle has recently updated to Version 5 and Webpack 2 got deprecated.

You see this in folders S06/L04 to S06/L09.

There are new commands:

Commands:

Compile: truffle compile
Migrate: truffle migrate
Test contracts: truffle test
Run dev server: cd app && npm run dev
Build for production: cd app && npm run build

Please pay special attention to the `cd app && npm run dev`. Be aware that you can't run the Dev-Server from the root directory anymore.

### No Truffle-Contract included

The new truffle-webpack-box doesn't use truffle-contract anymore. This course heavily relies on Truffle-Contract though. If you still want to use truffle-contract in a truffle-webpack box then you have to

`cd app && npm install --save truffle-contract`

### Bugfix in ethers

If you run into

ERROR in ./node_modules/ethers/utils/web.js
Module not found: Error: Can't resolve 'xmlhttprequest' in 'C:\101Tmp\updates\app\node_modules\ethers\utils'

or

ERROR in ./node_modules/ethers/providers/ipc-provider.js
Module not found: Error: Can't resolve 'net' in 'C:\101Tmp\updates\app\node_modules\ethers\providers'

then try to install a specific version of ethers: `npm install ethers@4.0.20`. The Version dependency of web3 is stating ethers@4.0.0-beta.1 which breaks functionality

## Remix and Solidity 0.5.0
Remix had some problems with the recent Solidity 0.5.0 update
Expand Down
3 changes: 0 additions & 3 deletions S06/L07 - Truffle Webpack 3 Input fields/.babelrc

This file was deleted.

7 changes: 0 additions & 7 deletions S06/L07 - Truffle Webpack 3 Input fields/.eslintignore

This file was deleted.

15 changes: 0 additions & 15 deletions S06/L07 - Truffle Webpack 3 Input fields/.eslintrc

This file was deleted.

2 changes: 2 additions & 0 deletions S06/L07 - Truffle Webpack 3 Input fields/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
build
2 changes: 2 additions & 0 deletions S06/L07 - Truffle Webpack 3 Input fields/app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
Loading

0 comments on commit aadbea3

Please sign in to comment.