Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove ethers/wordlists #75

Merged
merged 1 commit into from Aug 16, 2021
Merged

remove ethers/wordlists #75

merged 1 commit into from Aug 16, 2021

Conversation

wuyahuang
Copy link
Contributor

@wuyahuang wuyahuang commented Aug 16, 2021

  1. install client-sdk-js
npm i PlatONnetwork/client-sdk-js#master
  1. require web3
const Web3 = require('web3');

output error:

internal/modules/cjs/loader.js:670
    throw err;
    ^

Error: Cannot find module 'ethers/wordlists'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:668:15)
    at Function.Module._load (internal/modules/cjs/loader.js:591:27)
    at Module.require (internal/modules/cjs/loader.js:723:19)
    at require (internal/modules/cjs/helpers.js:14:16)
    at Object.<anonymous> (/home/yy/contracts/platon-hackathon/client/node_modules/web3/packages/web3-ppos/index.js:8:16)
    at Module._compile (internal/modules/cjs/loader.js:816:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
    at Module.load (internal/modules/cjs/loader.js:685:32)
    at Function.Module._load (internal/modules/cjs/loader.js:620:12)
    at Module.require (internal/modules/cjs/loader.js:723:19)

web3 module ethers/wordlists is never used, and not installed in package.json.

It's works after remove require ethers/wordlists.

@biganxin
Copy link

@luo-dahui

@wuyahuang
Copy link
Contributor Author

branch 0.15.1-develop is works as expected, maybe branch master is not merged.

npm i PlatONnetwork/client-sdk-js#0.15.1-develop

@DavidRomy DavidRomy merged commit 187a251 into PlatONnetwork:master Aug 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants