citahub / microscope

Blockchain Explorer for CITA
https://microscope.cryptape.com/
MIT License
17 stars 15 forks source link

failed to run by docker #165

Closed timmyz closed 5 years ago

timmyz commented 5 years ago

when run yarn docker:init, the following errors appear:

ERROR in ./node_modules/react-hot-loader/webpack.js!./node_modules/ts-loader??ref--0-1!./src/containers/Transaction/index.tsx
[tsl] ERROR in /app/src/containers/Transaction/index.tsx(159,39)
      TS2339: Property 'encodeFunctionSignature' does not exist on type 'typeof import("/app/node_modules/web3-eth-abi/types/index")'.

ERROR in ./node_modules/react-hot-loader/webpack.js!./node_modules/ts-loader??ref--0-1!./src/containers/Transaction/index.tsx
[tsl] ERROR in /app/src/containers/Transaction/index.tsx(162,34)
      TS2339: Property 'decodeParameters' does not exist on type 'typeof import("/app/node_modules/web3-eth-abi/types/index")'.

ERROR in ./node_modules/bundle-loader?lazy!./src/containers/Transaction/index.tsx
[tsl] ERROR in /app/src/containers/Transaction/index.tsx(159,39)
      TS2339: Property 'encodeFunctionSignature' does not exist on type 'typeof import("/app/node_modules/web3-eth-abi/types/index")'.

ERROR in ./node_modules/bundle-loader?lazy!./src/containers/Transaction/index.tsx
[tsl] ERROR in /app/src/containers/Transaction/index.tsx(162,34)
      TS2339: Property 'decodeParameters' does not exist on type 'typeof import("/app/node_modules/web3-eth-abi/types/index")'.

ERROR in ./node_modules/react-hot-loader/webpack.js!./node_modules/ts-loader??ref--0-1!./src/containers/Debugger/index.tsx
[tsl] ERROR in /app/src/containers/Debugger/index.tsx(23,21)
      TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.

ERROR in ./node_modules/bundle-loader?lazy!./src/containers/Debugger/index.tsx
[tsl] ERROR in /app/src/containers/Debugger/index.tsx(23,21)
      TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.

ERROR in ./node_modules/react-hot-loader/webpack.js!./node_modules/ts-loader??ref--0-1!./src/containers/Account/index.tsx
[tsl] ERROR in /app/src/containers/Account/index.tsx(120,28)
      TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.

ERROR in ./node_modules/react-hot-loader/webpack.js!./node_modules/ts-loader??ref--0-1!./src/containers/Account/index.tsx
[tsl] ERROR in /app/src/containers/Account/index.tsx(164,28)
      TS2339: Property 'encodeFunctionCall' does not exist on type 'typeof import("/app/node_modules/web3-eth-abi/types/index")'.

ERROR in ./node_modules/react-hot-loader/webpack.js!./node_modules/ts-loader??ref--0-1!./src/containers/Account/index.tsx
[tsl] ERROR in /app/src/containers/Account/index.tsx(181,35)
      TS2339: Property 'decodeParameters' does not exist on type 'typeof import("/app/node_modules/web3-eth-abi/types/index")'.

ERROR in ./node_modules/bundle-loader?lazy!./src/containers/Account/index.tsx
[tsl] ERROR in /app/src/containers/Account/index.tsx(120,28)
      TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.

ERROR in ./node_modules/bundle-loader?lazy!./src/containers/Account/index.tsx
[tsl] ERROR in /app/src/containers/Account/index.tsx(164,28)
      TS2339: Property 'encodeFunctionCall' does not exist on type 'typeof import("/app/node_modules/web3-eth-abi/types/index")'.

ERROR in ./node_modules/bundle-loader?lazy!./src/containers/Account/index.tsx
[tsl] ERROR in /app/src/containers/Account/index.tsx(181,35)
      TS2339: Property 'decodeParameters' does not exist on type 'typeof import("/app/node_modules/web3-eth-abi/types/index")'.
Child html-webpack-plugin for "index.html":
     1 asset
       [0] ./node_modules/html-webpack-plugin/lib/loader.js!./src/templates/index.html 3.98 kB {0} [built]
       [2] (webpack)/buildin/global.js 509 bytes {0} [built]
       [3] (webpack)/buildin/module.js 517 bytes {0} [built]
        + 1 hidden module
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js??ref--3-2!node_modules/postcss-loader/lib/index.js??postcss!node_modules/resolve-url-loader/index.js!node_modules/sass-loader/lib/loader.js!node_modules/normalize.css/normalize.css:
       2 modules
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js??ref--3-2!node_modules/postcss-loader/lib/index.js??postcss!node_modules/resolve-url-loader/index.js!node_modules/sass-loader/lib/loader.js!src/styles/common.scss:
       [0] ./node_modules/css-loader??ref--3-2!./node_modules/postcss-loader/lib??postcss!./node_modules/resolve-url-loader!./node_modules/sass-loader/lib/loader.js!./src/styles/common.scss 1.52 kB {0} [built]
        + 1 hidden module
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js??ref--3-2!node_modules/postcss-loader/lib/index.js??postcss!node_modules/resolve-url-loader/index.js!node_modules/sass-loader/lib/loader.js!src/styles/text.scss:
       [0] ./node_modules/css-loader??ref--3-2!./node_modules/postcss-loader/lib??postcss!./node_modules/resolve-url-loader!./node_modules/sass-loader/lib/loader.js!./src/styles/text.scss 1.14 kB {0} [built]
        + 1 hidden module
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js??ref--3-2!node_modules/postcss-loader/lib/index.js??postcss!node_modules/resolve-url-loader/index.js!node_modules/sass-loader/lib/loader.js!src/containers/Dialog/dialog.scss:
       [0] ./node_modules/css-loader??ref--3-2!./node_modules/postcss-loader/lib??postcss!./node_modules/resolve-url-loader!./node_modules/sass-loader/lib/loader.js!./src/containers/Dialog/dialog.scss 1.04 kB {0} [built]
        + 1 hidden module
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js??ref--3-2!node_modules/postcss-loader/lib/index.js??postcss!node_modules/resolve-url-loader/index.js!node_modules/sass-loader/lib/loader.js!src/styles/layout.scss:
       [0] ./node_modules/css-loader??ref--3-2!./node_modules/postcss-loader/lib??postcss!./node_modules/resolve-url-loader!./node_modules/sass-loader/lib/loader.js!./src/styles/layout.scss 2.12 kB {0} [built]
        + 1 hidden module
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js??ref--3-2!node_modules/postcss-loader/lib/index.js??postcss!node_modules/resolve-url-loader/index.js!node_modules/sass-loader/lib/loader.js!src/components/TableWithSelector/tableWithSelector.scss:
       2 modules
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: Service 'app' failed to build: The command '/bin/sh -c yarn install && yarn run dll && yarn build' returned a non-zero code: 1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Keith-CY commented 5 years ago

Sorry for that.

This error comes with an incompatible update of web3 has incorrect semver, locking version of web3 in this line can fix this problem(just remove ^), and I will update it now.

wuyuyue commented 5 years ago

it should work now, close this issue first.