{"action":"created","issue":{"url":"https://api.github.com/repos/trufflesuite/truffle/issues/1538","repository_url":"https://api.github.com/repos/trufflesuite/truffle","labels_url":"https://api.github.com/repos/trufflesuite/truffle/issues/1538/labels{/name}","comments_url":"https://api.github.com/repos/trufflesuite/truffle/issues/1538/comments","events_url":"https://api.github.com/repos/trufflesuite/truffle/issues/1538/events","html_url":"https://github.com/trufflesuite/truffle/issues/1538","id":390589004,"node_id":"MDU6SXNzdWUzOTA1ODkwMDQ=","number":1538,"title":"Truffle5 beta2: issue with truffle-hdwallet-provider","user":{"login":"eloudsa","id":300818,"node_id":"MDQ6VXNlcjMwMDgxOA==","avatar_url":"https://avatars3.githubusercontent.com/u/300818?v=4","gravatar_id":"","url":"https://api.github.com/users/eloudsa","html_url":"https://github.com/eloudsa","followers_url":"https://api.github.com/users/eloudsa/followers","following_url":"https://api.github.com/users/eloudsa/following{/other_user}","gists_url":"https://api.github.com/users/eloudsa/gists{/gist_id}","starred_url":"https://api.github.com/users/eloudsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eloudsa/subscriptions","organizations_url":"https://api.github.com/users/eloudsa/orgs","repos_url":"https://api.github.com/users/eloudsa/repos","events_url":"https://api.github.com/users/eloudsa/events{/privacy}","received_events_url":"https://api.github.com/users/eloudsa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-12-13T09:28:03Z","updated_at":"2018-12-19T16:33:24Z","closed_at":"2018-12-17T21:13:30Z","author_association":"NONE","body":"Hi\r\n\r\nI'm using Truffle 5 beta 2 and the Truffle HDWallet Provider. \r\nFor an unknown reason, I'm not able anymore to deploy my contract to Ropsten.\r\n\r\nI have the following error:\r\n```\r\n$ truffle migrate --compile-all --reset --network ropsten\r\nError: Cannot find module 'any-promise'\r\n    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)\r\n    at Function.Module._load (internal/modules/cjs/loader.js:507:25)\r\n    at Module.require (internal/modules/cjs/loader.js:637:17)\r\n    at require (internal/modules/cjs/helpers.js:22:18)\r\n    at /Users/eloudsa/ChainSkills/projects/chainlist-truffle5/node_modules/truffle-hdwallet-provider/dist/webpack:/truffle-hdwallet-provider/webpack/universalModuleDefinition:3:1\r\n    at Object.<anonymous> (/Users/eloudsa/ChainSkills/projects/chainlist-truffle5/node_modules/truffle-hdwallet-provider/dist/webpack:/truffle-hdwallet-provider/webpack/universalModuleDefinition:1:1)\r\n    at Module._compile (internal/modules/cjs/loader.js:689:30)\r\n    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)\r\n    at Module.load (internal/modules/cjs/loader.js:599:32)\r\n    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)\r\n    at Function.Module._load (internal/modules/cjs/loader.js:530:3)\r\n    at Module.require (internal/modules/cjs/loader.js:637:17)\r\n    at require (internal/modules/cjs/helpers.js:22:18)\r\n    at Object.<anonymous> (/Users/eloudsa/ChainSkills/projects/chainlist-truffle5/truffle-config.js:1:26)\r\n    at Module._compile (internal/modules/cjs/loader.js:689:30)\r\n    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)\r\n    at Module.load (internal/modules/cjs/loader.js:599:32)\r\n    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)\r\n    at Function.Module._load (internal/modules/cjs/loader.js:530:3)\r\n    at Module.require (internal/modules/cjs/loader.js:637:17)\r\n    at require (internal/modules/cjs/helpers.js:22:18)\r\n    at Function.Config.load (/usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-config/index.js:387:1)\r\n    at Function.Config.detect (/usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-config/index.js:376:1)\r\n    at Object.run (/usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-core/lib/commands/migrate.js:165:1)\r\n    at Command.run (/usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-core/lib/command.js:113:1)\r\n    at Object.<anonymous> (/usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-core/cli.js:47:1)\r\n    at __webpack_require__ (/usr/local/lib/node_modules/truffle/build/webpack:/webpack/bootstrap 1b5412eb3ddc7c8d5561:19:1)\r\n    at /usr/local/lib/node_modules/truffle/build/webpack:/webpack/bootstrap 1b5412eb3ddc7c8d5561:65:1\r\n    at Object.<anonymous> (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:71:10)\r\n    at Module._compile (internal/modules/cjs/loader.js:689:30)\r\n    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)\r\n    at Module.load (internal/modules/cjs/loader.js:599:32)\r\n    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)\r\n    at Function.Module._load (internal/modules/cjs/loader.js:530:3)\r\n    at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)\r\n    at startup (internal/bootstrap/node.js:282:19)\r\n    at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)\r\nTruffle v5.0.0-beta.2 (core: 5.0.0-beta.2)\r\nSolidity v0.5.0 (solc-js)\r\nNode v10.14.2\r\n```\r\nI use the following dependencies:\r\n````\r\n\"dependencies\": {\r\n    \"dotenv\": \"^6.2.0\",\r\n    \"truffle-hdwallet-provider\": \"^1.0.0-web3one.4\"\r\n  }\r\n````\r\n\r\nI have the same problem with `Truffle v5.0.0-next.24`.\r\n\r\nAny idea how to fix this issue?\r\n\r\nThanks\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/trufflesuite/truffle/issues/comments/448659312","html_url":"https://github.com/trufflesuite/truffle/issues/1538#issuecomment-448659312","issue_url":"https://api.github.com/repos/trufflesuite/truffle/issues/1538","id":448659312,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0ODY1OTMxMg==","user":{"login":"gjeanmart","id":506784,"node_id":"MDQ6VXNlcjUwNjc4NA==","avatar_url":"https://avatars3.githubusercontent.com/u/506784?v=4","gravatar_id":"","url":"https://api.github.com/users/gjeanmart","html_url":"https://github.com/gjeanmart","followers_url":"https://api.github.com/users/gjeanmart/followers","following_url":"https://api.github.com/users/gjeanmart/following{/other_user}","gists_url":"https://api.github.com/users/gjeanmart/gists{/gist_id}","starred_url":"https://api.github.com/users/gjeanmart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gjeanmart/subscriptions","organizations_url":"https://api.github.com/users/gjeanmart/orgs","repos_url":"https://api.github.com/users/gjeanmart/repos","events_url":"https://api.github.com/users/gjeanmart/events{/privacy}","received_events_url":"https://api.github.com/users/gjeanmart/received_events","type":"User","site_admin":false},"created_at":"2018-12-19T16:33:24Z","updated_at":"2018-12-19T16:33:24Z","author_association":"NONE","body":"Just add the same issue with **truffle v5.0.0**\r\n\r\n```\r\n$ npm install --save truffle-hdwallet-provider@web3-one\r\nnpm WARN kauri-protocol-contracts@1.0.0 No description\r\nnpm WARN kauri-protocol-contracts@1.0.0 No repository field.\r\n\r\n+ truffle-hdwallet-provider@1.0.0-web3one.5\r\nupdated 1 package and audited 163 packages in 0.872s\r\nfound 0 vulnerabilities\r\n\r\n--------------------------------\r\n$ truffle migrate\r\nError: Cannot find module 'any-promise'\r\n    at Function.Module._resolveFilename (module.js:547:15)\r\n    at Function.Module._load (module.js:474:25)\r\n    at Module.require (module.js:596:17)\r\n    at require (internal/module.js:11:18)\r\n    at require (/home/gjeanmart/workspace/kauri/kauri-protocol/kauri-protocol-contracts/node_modules/truffle-hdwallet-provider/dist/webpack:/truffle-hdwallet-provider/webpack/universalModuleDefinition:3:1)\r\n    at Object.<anonymous> (/home/gjeanmart/workspace/kauri/kauri-protocol/kauri-protocol-contracts/node_modules/truffle-hdwallet-provider/dist/webpack:/truffle-hdwallet-provider/webpack/universalModuleDefinition:1:1)\r\n    at Module._compile (module.js:652:30)\r\n    at Object.Module._extensions..js (module.js:663:10)\r\n    at Module.load (module.js:565:32)\r\n    at tryModuleLoad (module.js:505:12)\r\n    at Function.Module._load (module.js:497:3)\r\n    at Module.require (module.js:596:17)\r\n    at require (internal/module.js:11:18)\r\n    at Object.<anonymous> (/home/gjeanmart/workspace/kauri/kauri-protocol/kauri-protocol-contracts/truffle.js:2:26)\r\n    at Module._compile (module.js:652:30)\r\n    at Object.Module._extensions..js (module.js:663:10)\r\n    at Module.load (module.js:565:32)\r\n    at tryModuleLoad (module.js:505:12)\r\n    at Function.Module._load (module.js:497:3)\r\n    at Module.require (module.js:596:17)\r\n    at require (internal/module.js:11:18)\r\n    at Function.Config.load (/home/gjeanmart/.npm-global/lib/node_modules/truffle/build/webpack:/packages/truffle-config/index.js:381:1)\r\n    at Function.Config.detect (/home/gjeanmart/.npm-global/lib/node_modules/truffle/build/webpack:/packages/truffle-config/index.js:370:1)\r\n    at Object.run (/home/gjeanmart/.npm-global/lib/node_modules/truffle/build/webpack:/packages/truffle-core/lib/commands/migrate.js:165:1)\r\n    at Command.run (/home/gjeanmart/.npm-global/lib/node_modules/truffle/build/webpack:/packages/truffle-core/lib/command.js:113:1)\r\n    at Object.<anonymous> (/home/gjeanmart/.npm-global/lib/node_modules/truffle/build/webpack:/packages/truffle-core/cli.js:47:1)\r\n    at __webpack_require__ (/home/gjeanmart/.npm-global/lib/node_modules/truffle/build/webpack:/webpack/bootstrap 10c8e5c48cca88d8ca36:19:1)\r\n    at /home/gjeanmart/.npm-global/lib/node_modules/truffle/build/webpack:/webpack/bootstrap 10c8e5c48cca88d8ca36:65:1\r\nTruffle v5.0.0 (core: 5.0.0)\r\nNode v8.10.0\r\n\r\n--------------------------------\r\n$ npm install any-promise\r\nnpm WARN kauri-protocol-contracts@1.0.0 No description\r\nnpm WARN kauri-protocol-contracts@1.0.0 No repository field.\r\n\r\n+ any-promise@1.3.0\r\nadded 1 package from 1 contributor and audited 164 packages in 3.047s\r\nfound 0 vulnerabilities\r\n\r\n\r\n--------------------------------\r\n$ truffle migrate --reset\r\n⚠️  Important ⚠️\r\nIf you're using an HDWalletProvider, it must be Web3 1.0 enabled or your migration will hang.\r\nTry: npm install --save truffle-hdwallet-provider@web3-one\r\n\r\n\r\nStarting migrations...\r\n======================\r\n> Network name:    'development'\r\n> Network id:      1545229853622\r\n> Block gas limit: 6721975\r\n\r\n\r\n1_initial_migration.js\r\n======================\r\n\r\n   Replacing 'Migrations'\r\n   ----------------------\r\n   > transaction hash:    0x0f7fe9015eb18c959c40361543401cde895d279e15ea7deeb10a7804bf03ce9b\r\n   > Blocks: 0            Seconds: 0\r\n   > contract address:    0x5bDF1070C75E1697B317f193D59E3882793b10A2\r\n   > account:             0x31661ed38378C8ABDc9b5EE4Cf80961847793292\r\n   > balance:             88.18620056\r\n   > gas used:            284908\r\n   > gas price:           20 gwei\r\n   > value sent:          0 ETH\r\n   > total cost:          0.00569816 ETH\r\n\r\n\r\n   > Saving migration to chain.\r\n   > Saving artifacts\r\n   -------------------------------------\r\n   > Total cost:          0.00569816 ETH\r\n\r\n\r\n2_deployment.js\r\n===============\r\n\r\n   Replacing 'ContentSpaceRegistry'\r\n   --------------------------------\r\n   > transaction hash:    0x7a159d4a8e6ac9187e913e149aa3846ee166a2c07c64b69eddedb72cfb5c7ca4\r\n   > Blocks: 0            Seconds: 0\r\n   > contract address:    0x2D4852F1Cd970F58da610930C4D2d981497133fF\r\n   > account:             0x31661ed38378C8ABDc9b5EE4Cf80961847793292\r\n   > balance:             88.08768254\r\n   > gas used:            4883867\r\n   > gas price:           20 gwei\r\n   > value sent:          0 ETH\r\n   > total cost:          0.09767734 ETH\r\n\r\n\r\n   > Saving migration to chain.\r\n   > Saving artifacts\r\n   -------------------------------------\r\n   > Total cost:          0.09767734 ETH\r\n\r\n\r\nSummary\r\n=======\r\n> Total deployments:   2\r\n> Final cost:          0.1033755 ETH\r\n```\r\n"}}
{"actor":{"display_login":"gjeanmart"}}