eth-ipfs icon indicating copy to clipboard operation
eth-ipfs copied to clipboard

cannot build;

Open coinmini opened this issue 6 years ago • 2 comments

$ react-scripts build Creating an optimized production build... Failed to compile.

Failed to minify the code from this file:

./node_modules/ipfs-api/src/utils/module-config.js:7

Read more here: http://bit.ly/2tRViJ9

error An unexpected error occurred: "Command failed. Exit code: 1 Command: sh Arguments: -c react-scripts build Directory: /Users/bolin/Documents/IPFS/eth-ipfs Output: ". info If you think this is a bug, please open a bug report with the information provided in "/Users/bolin/Documents/IPFS/eth-ipfs/yarn-error.log". info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

coinmini avatar Apr 08 '18 11:04 coinmini

Hmm...did you try installing with npm instead of yarn? Do you have current versions of node and npm? I opened my /module.config.js file and I have the es5 version that is in the ipfs-api package and it ran without problems. Trying to think what else it might be...

mcchan1 avatar Apr 08 '18 17:04 mcchan1

I met this error:

TypeError: WEBPACK_IMPORTED_MODULE_0__web3.a.eth.Contract is not a constructor

./src/storehash.js

e:/eth-ipfs/src/storehash.js:37

34 | "type": "function" 35 | } 36 | ]

37 | export default new web3.eth.Contract(abi, address); 38 | 39 | 40 | // WEBPACK FOOTER // View compiled

▼ 13 stack frames were expanded.

I suspect it is because my web3 version is 0.20.0. CMD is always wrong when I install Web3 0.1.0, and the installation is unsuccessful.

songdaqi1125 avatar Jul 30 '18 20:07 songdaqi1125