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

cannot build; #1

Open
coinmini opened this issue Apr 8, 2018 · 2 comments
Open

cannot build; #1

coinmini opened this issue Apr 8, 2018 · 2 comments

Comments

@coinmini
Copy link

coinmini commented Apr 8, 2018

$ 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.

@mcchan1
Copy link
Owner

mcchan1 commented Apr 8, 2018

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...

@songdaqi1125
Copy link

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.

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

No branches or pull requests

3 participants