Cannot read property 'replace' of undefined for truffle-hdwallet-provider
See original GitHub issueIssue
truffle migrate error:
Cannot read property 'replace' of undefined caused by truffle-hdwallet-provider.
I have tried to install truffle-hdwallet-provider by
npm install --save truffle-hdwallet-provider@web3-one
It works before and now it broken again. My experience is that “truffle-hdwallet-provider” is not very stable and often caused by version mismatch of web3. Don’t know the root cause for this issue.
Environment
Operating System: MacOS truffle-hdwallet-provider: 1.0.8 truffle version: v5.0.15. Node: v10.15.3 npm: 6.9.0
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
ConsenSys/truffle - Gitter
I keep seeing it on the debugger for many of the smart contracts I do. (TypeError: Cannot read property 'replace' of undefined)
Read more >@truffle/hdwallet-provider - npm
Start using @truffle/hdwallet-provider in your project by running `npm i @truffle/hdwallet-provider`. There are 357 other projects in the ...
Read more >Why is truffle migration failing to deploy contracts? "cannot ...
The following code should work : const SushiToken = artifacts.require("./SushiToken.sol") module.exports = function(deployer) ...
Read more >js: TypeError: Cannot read property 'replace' of undefined using
I wanted to replace /\r?\n|\r/g with empty string but got a type error "Cannot read property 'replace' of undefined".
Read more >Truffle: deployProxy error: Cannot read property 'evm' of ...
I get the typeError cannot read property EVM of undefined deploying this ... truffle-hdwallet-provider has been deprecated, so we should use ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@chaosma, I believe you need to pass a thunk that returns a new HDWalletProvider.
For example:
Sweet! Glad to hear that @chaosma 🙌