kenglou.lee
7 months ago  Karma: 20
I can't proceed when trying to do the tiles chain tutorial

I follow the tutorial and it runs, but when i try to goto localhost:9000 or 127.0.0.1:9000, I can't proceed and the webserver comes out some error.

> [email protected] start /Volumes/Data/BlockChain/loom/tiles-chain/webclient
> webpack-dev-server -d --inline --progress --no-info --host 0.0.0.0 --port 9000

 http://0.0.0.0:9000/
webpack result is served from /
content is served from /Volumes/Data/BlockChain/loom/tiles-chain/webclient
ts-loader: Using [email protected] and /Volumes/Data/BlockChain/loom/tiles-chain/webclient/tsconfig.json
Hash: 5aca0e1ca87d373fdb75
Version: webpack 3.12.0
Time: 10331ms
 2 assets
 [160] (webpack)-dev-server/client?http://0.0.0.0:9000 4.16 kB {1} [built]
 [175] ./node_modules/phaser/build/custom/pixi.js-exposed 57 bytes {1} [built]
 [176] ./node_modules/phaser/build/custom/p2.js-exposed 53 bytes {1} [built]
 [177] ./node_modules/phaser/build/custom/phaser-split.js-exposed 67 bytes {1} [built]
 [314] multi (webpack)-dev-server/client?http://0.0.0.0:9000 ./src/index.ts 40 bytes {0} [built]
 [323] (webpack)-dev-server/client/socket.js 897 bytes {1} [built]
 [355] ./src/index.ts 8.38 kB {0} [built]
 [356] ./node_modules/phaser/build/custom/pixi.js 242 kB {1} [built]
 [357] ./node_modules/phaser/build/custom/p2.js 396 kB {1} [built]
 [358] ./node_modules/phaser/build/custom/phaser-split.js 2.53 MB {1} [built]
 [359] ./src/config.ts 132 bytes {0} [built]
 [360] ./src/contract_client.ts 5.4 kB {0} [built]
 [729] ./src/events.ts 1.19 kB {0} [built]
 [730] multi (webpack)-dev-server/client?http://0.0.0.0:9000 pixi p2 phaser webfontloader 76 bytes {1} [built]
 [731] ./node_modules/webfontloader/webfontloader.js 12.5 kB {1} [built]
    + 717 hidden modules

ERROR in /Volumes/Data/BlockChain/loom/tiles-chain/webclient/node_modules/loom-js/dist/crypto-utils.d.ts
(46,54): error TS2304: Cannot find name 'Buffer'.

ERROR in /Volumes/Data/BlockChain/loom/tiles-chain/webclient/node_modules/loom-js/dist/crypto-utils.d.ts
(1,23): error TS2688: Cannot find type definition file for 'node'.

ERROR in /Volumes/Data/BlockChain/loom/tiles-chain/webclient/node_modules/loom-js/dist/evm-contract.d.ts
(1,23): error TS2688: Cannot find type definition file for 'node'.

ERROR in /Volumes/Data/BlockChain/loom/tiles-chain/webclient/node_modules/loom-js/dist/contract.d.ts
(1,23): error TS2688: Cannot find type definition file for 'node'.

ERROR in /Volumes/Data/BlockChain/loom/tiles-chain/webclient/node_modules/loom-js/dist/internal/json-rpc-client.d.ts
(1,23): error TS2688: Cannot find type definition file for 'node'.

ERROR in /Volumes/Data/BlockChain/loom/tiles-chain/webclient/node_modules/loom-js/dist/client.d.ts
(1,23): error TS2688: Cannot find type definition file for 'node'.

ERROR in ./node_modules/shelljs/src/exec-child.js
Module not found: Error: Can't resolve 'child_process' in '/Volumes/Data/BlockChain/loom/tiles-chain/webclient/node_modules/shelljs/src'
 @ ./node_modules/shelljs/src/exec-child.js 5:19-43
 @ ./node_modules/shelljs/src ^\.\/.*$
 @ ./node_modules/shelljs/shell.js
 @ ./node_modules/loom-js/dist/plasma-cash/db.js
 @ ./node_modules/loom-js/dist/index.js
 @ ./src/contract_client.ts
 @ ./src/index.ts
 @ multi (webpack)-dev-server/client?http://0.0.0.0:9000 ./src/index.ts

ERROR in ./node_modules/shelljs/src/exec.js
Module not found: Error: Can't resolve 'child_process' in '/Volumes/Data/BlockChain/loom/tiles-chain/webclient/node_modules/shelljs/src'
 @ ./node_modules/shelljs/src/exec.js 6:12-36
 @ ./node_modules/shelljs/src ^\.\/.*$
 @ ./node_modules/shelljs/shell.js
 @ ./node_modules/loom-js/dist/plasma-cash/db.js
 @ ./node_modules/loom-js/dist/index.js
 @ ./src/contract_client.ts
 @ ./src/index.ts
 @ multi (webpack)-dev-server/client?http://0.0.0.0:9000 ./src/index.ts
Child html-webpack-plugin for "index.html":
     1 asset
       [0] ./node_modules/html-webpack-plugin/lib/loader.js!./index.html 574 bytes {0} [built]
       [1] ./node_modules/lodash/lodash.js 540 kB {0} [built]
       [2] (webpack)/buildin/global.js 509 bytes {0} [built]
       [3] (webpack)/buildin/module.js 517 bytes {0} [built]

any help would be great. thank you.

en
#DApp
tutorial
tiles-chain
kenglou.lee
7 months ago  Karma: 20
I can't proceed when trying to do the tiles chain tutorial

I follow the tutorial and it runs, but when i try to goto localhost:9000 or 127.0.0.1:9000, I can't proceed and the webserver comes out some error.

> [email protected] start /Volumes/Data/BlockChain/loom/tiles-chain/webclient
> webpack-dev-server -d --inline --progress --no-info --host 0.0.0.0 --port 9000

 http://0.0.0.0:9000/
webpack result is served from /
content is served from /Volumes/Data/BlockChain/loom/tiles-chain/webclient
ts-loader: Using [email protected] and /Volumes/Data/BlockChain/loom/tiles-chain/webclient/tsconfig.json
Hash: 5aca0e1ca87d373fdb75
Version: webpack 3.12.0
Time: 10331ms
 2 assets
 [160] (webpack)-dev-server/client?http://0.0.0.0:9000 4.16 kB {1} [built]
 [175] ./node_modules/phaser/build/custom/pixi.js-exposed 57 bytes {1} [built]
 [176] ./node_modules/phaser/build/custom/p2.js-exposed 53 bytes {1} [built]
 [177] ./node_modules/phaser/build/custom/phaser-split.js-exposed 67 bytes {1} [built]
 [314] multi (webpack)-dev-server/client?http://0.0.0.0:9000 ./src/index.ts 40 bytes {0} [built]
 [323] (webpack)-dev-server/client/socket.js 897 bytes {1} [built]
 [355] ./src/index.ts 8.38 kB {0} [built]
 [356] ./node_modules/phaser/build/custom/pixi.js 242 kB {1} [built]
 [357] ./node_modules/phaser/build/custom/p2.js 396 kB {1} [built]
 [358] ./node_modules/phaser/build/custom/phaser-split.js 2.53 MB {1} [built]
 [359] ./src/config.ts 132 bytes {0} [built]
 [360] ./src/contract_client.ts 5.4 kB {0} [built]
 [729] ./src/events.ts 1.19 kB {0} [built]
 [730] multi (webpack)-dev-server/client?http://0.0.0.0:9000 pixi p2 phaser webfontloader 76 bytes {1} [built]
 [731] ./node_modules/webfontloader/webfontloader.js 12.5 kB {1} [built]
    + 717 hidden modules

ERROR in /Volumes/Data/BlockChain/loom/tiles-chain/webclient/node_modules/loom-js/dist/crypto-utils.d.ts
(46,54): error TS2304: Cannot find name 'Buffer'.

ERROR in /Volumes/Data/BlockChain/loom/tiles-chain/webclient/node_modules/loom-js/dist/crypto-utils.d.ts
(1,23): error TS2688: Cannot find type definition file for 'node'.

ERROR in /Volumes/Data/BlockChain/loom/tiles-chain/webclient/node_modules/loom-js/dist/evm-contract.d.ts
(1,23): error TS2688: Cannot find type definition file for 'node'.

ERROR in /Volumes/Data/BlockChain/loom/tiles-chain/webclient/node_modules/loom-js/dist/contract.d.ts
(1,23): error TS2688: Cannot find type definition file for 'node'.

ERROR in /Volumes/Data/BlockChain/loom/tiles-chain/webclient/node_modules/loom-js/dist/internal/json-rpc-client.d.ts
(1,23): error TS2688: Cannot find type definition file for 'node'.

ERROR in /Volumes/Data/BlockChain/loom/tiles-chain/webclient/node_modules/loom-js/dist/client.d.ts
(1,23): error TS2688: Cannot find type definition file for 'node'.

ERROR in ./node_modules/shelljs/src/exec-child.js
Module not found: Error: Can't resolve 'child_process' in '/Volumes/Data/BlockChain/loom/tiles-chain/webclient/node_modules/shelljs/src'
 @ ./node_modules/shelljs/src/exec-child.js 5:19-43
 @ ./node_modules/shelljs/src ^\.\/.*$
 @ ./node_modules/shelljs/shell.js
 @ ./node_modules/loom-js/dist/plasma-cash/db.js
 @ ./node_modules/loom-js/dist/index.js
 @ ./src/contract_client.ts
 @ ./src/index.ts
 @ multi (webpack)-dev-server/client?http://0.0.0.0:9000 ./src/index.ts

ERROR in ./node_modules/shelljs/src/exec.js
Module not found: Error: Can't resolve 'child_process' in '/Volumes/Data/BlockChain/loom/tiles-chain/webclient/node_modules/shelljs/src'
 @ ./node_modules/shelljs/src/exec.js 6:12-36
 @ ./node_modules/shelljs/src ^\.\/.*$
 @ ./node_modules/shelljs/shell.js
 @ ./node_modules/loom-js/dist/plasma-cash/db.js
 @ ./node_modules/loom-js/dist/index.js
 @ ./src/contract_client.ts
 @ ./src/index.ts
 @ multi (webpack)-dev-server/client?http://0.0.0.0:9000 ./src/index.ts
Child html-webpack-plugin for "index.html":
     1 asset
       [0] ./node_modules/html-webpack-plugin/lib/loader.js!./index.html 574 bytes {0} [built]
       [1] ./node_modules/lodash/lodash.js 540 kB {0} [built]
       [2] (webpack)/buildin/global.js 509 bytes {0} [built]
       [3] (webpack)/buildin/module.js 517 bytes {0} [built]

any help would be great. thank you.

en
#DApp
tutorial
tiles-chain

Earn tokens by posting and answering questions about blockchain!
Karma to eth
BE THE FIRST TO ANSWER