simple-dapp-tutorial icon indicating copy to clipboard operation
simple-dapp-tutorial copied to clipboard

latest code in master ?

Open chenguzhen87 opened this issue 4 years ago • 3 comments

 remotes/origin/HEAD -> origin/master
  remotes/origin/aakers/part_2
  remotes/origin/dependabot/npm_and_yarn/finished/elliptic-6.5.4
  remotes/origin/dependabot/npm_and_yarn/finished/hosted-git-info-2.8.9
  remotes/origin/dependabot/npm_and_yarn/finished/lodash-4.17.21
  remotes/origin/dependabot/npm_and_yarn/finished/url-parse-1.5.1
  remotes/origin/dependabot/npm_and_yarn/start/hosted-git-info-2.8.9
  remotes/origin/dependabot/npm_and_yarn/start/lodash-4.17.21
  remotes/origin/master
  remotes/origin/refactor

demo: https://metamask.github.io/test-dapp/ I found latest code in origin/aakers/part_2 branch?

chenguzhen87 avatar May 25 '21 11:05 chenguzhen87

doest run. and i got error after npm install for Finished Project

`yarn run v1.22.10 $ yarn lint $ eslint . --ext js,json && prettier ./src -c

C:\Users\thep_\Downloads\simple-dapp-tutorial-aakers-part_2\simple-dapp-tutorial-aakers-part_2\finished.eslintrc.js 1:1 error This module could be parsed as a valid script import/unambiguous 28:2 error Newline required at end of file but not found eol-last

C:\Users\thep_\Downloads\simple-dapp-tutorial-aakers-part_2\simple-dapp-tutorial-aakers-part_2\finished\src\index.js 12:24 error The 'URL' is not supported until Node.js 10.0.0. The configured version range is '>=8.0.0' node/no-unsupported-features/node-builtins 848:29 error Missing space before function parentheses space-before-function-paren 857:26 error Missing space before function parentheses space-before-function-paren 861:28 error Missing space before function parentheses space-before-function-paren 865:38 error Missing space before function parentheses space-before-function-paren 907:37 error Missing space before function parentheses space-before-function-paren 915:28 error Missing space before function parentheses space-before-function-paren 917:2 error Newline required at end of file but not found eol-last

C:\Users\thep_\Downloads\simple-dapp-tutorial-aakers-part_2\simple-dapp-tutorial-aakers-part_2\finished\webpack.config.js 1:1 error This module could be parsed as a valid script import/unambiguous

✖ 11 problems (11 errors, 0 warnings) 8 errors and 0 warnings potentially fixable with the --fix option.

error Command failed with exit code 1. 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. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @metamask/[email protected] prepare script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\thep_\AppData\Roaming\npm-cache_logs\2021-05-25T16_25_07_005Z-debug.log PS C:\Users\thep_\Downloads\simple-dapp-tutorial-aakers-part_2\simple-dapp-tutorial-aakers-part_2\finished> npm i eslint-plugin-import npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.1 (node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules\watchpack-chokidar2\node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules\webpack-dev-server\node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm WARN @metamask/[email protected] requires a peer of eslint@^7.7.0 but none is installed. You must install peer dependencies yourself.

76 packages are looking for funding run npm fund for details

found 1 high severity vulnerability run npm audit fix to fix them, or npm audit for details PS C:\Users\thep_\Downloads\simple-dapp-tutorial-aakers-part_2\simple-dapp-tutorial-aakers-part_2\finished> npm run serve npm ERR! missing script: serve

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\thep_\AppData\Roaming\npm-cache_logs\2021-05-25T16_29_46_164Z-debug.log PS C:\Users\thep_\Downloads\simple-dapp-tutorial-aakers-part_2\simple-dapp-tutorial-aakers-part_2\finished> npm install

@metamask/[email protected] prepare C:\Users\thep_\Downloads\simple-dapp-tutorial-aakers-part_2\simple-dapp-tutorial-aakers-part_2\finished yarn test && yarn build

yarn run v1.22.10 $ yarn lint $ eslint . --ext js,json && prettier ./src -c

C:\Users\thep_\Downloads\simple-dapp-tutorial-aakers-part_2\simple-dapp-tutorial-aakers-part_2\finished.eslintrc.js 1:1 error This module could be parsed as a valid script import/unambiguous 28:2 error Newline required at end of file but not found eol-last

C:\Users\thep_\Downloads\simple-dapp-tutorial-aakers-part_2\simple-dapp-tutorial-aakers-part_2\finished\src\index.js 12:24 error The 'URL' is not supported until Node.js 10.0.0. The configured version range is '>=8.0.0' node/no-unsupported-features/node-builtins 848:29 error Missing space before function parentheses space-before-function-paren PS C:\Users\thep_\Downloads\simple-dapp-tutorial-aakers-part_2\simple-dapp-tutorial-aakers-part_2\finished> npm install

@metamask/[email protected] prepare C:\Users\thep_\Downloads\simple-dapp-tutorial-aakers-part_2\simple-dapp-tutorial-aakers-part_2\finished yarn test && yarn build

yarn run v1.22.10 $ yarn lint $ eslint . --ext js,json && prettier ./src -c

C:\Users\thep_\Downloads\simple-dapp-tutorial-aakers-part_2\simple-dapp-tutorial-aakers-part_2\finished.eslintrc.js 1:1 error This module could be parsed as a valid script import/unambiguous 28:2 error Newline required at end of file but not found eol-last

C:\Users\thep_\Downloads\simple-dapp-tutorial-aakers-part_2\simple-dapp-tutorial-aakers-part_2\finished\src\index.js 12:24 error The 'URL' is not supported until Node.js 10.0.0. The configured version range is '>=8.0.0' node/no-unsupported-features/node-builtins 848:29 error Missing space before function parentheses space-before-function-paren 857:26 error Missing space before function parentheses space-before-function-paren 861:28 error Missing space before function parentheses space-before-function-paren 865:38 error Missing space before function parentheses space-before-function-paren 907:37 error Missing space before function parentheses space-before-function-paren 915:28 error Missing space before function parentheses space-before-function-paren 917:2 error Newline required at end of file but not found eol-last

C:\Users\thep_\Downloads\simple-dapp-tutorial-aakers-part_2\simple-dapp-tutorial-aakers-part_2\finished\webpack.config.js 1:1 error This module could be parsed as a valid script import/unambiguous

✖ 11 problems (11 errors, 0 warnings) 8 errors and 0 warnings potentially fixable with the --fix option.

error Command failed with exit code 1. 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. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @metamask/[email protected] prepare: yarn test && yarn build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @metamask/[email protected] prepare script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\thep_\AppData\Roaming\npm-cache_logs\2021-05-25T16_31_55_655Z-debug.log`

triloconinja avatar May 25 '21 16:05 triloconinja

no it's not in master, I'll push an update very soon!

BboyAkers avatar Jul 21 '21 22:07 BboyAkers

no it's not in master, I'll push an update very soon!

Hello,

The code seems outdated as I these errors: '

inpage.js:1 MetaMask no longer injects web3. For details, see: https://docs.metamask.io/guide/provider-migration.html#replacing-window-web3

The hosted version seems to be working well ,could you please share the code to the hosted version?

Thank you!

daniel-farina avatar Sep 10 '21 13:09 daniel-farina