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

Issue building after adding this module #2

Open
elie222 opened this issue Apr 4, 2018 · 5 comments
Open

Issue building after adding this module #2

elie222 opened this issue Apr 4, 2018 · 5 comments

Comments

@elie222
Copy link

elie222 commented Apr 4, 2018

yarn build v1.0.2
$ react-app-rewired build
Creating an optimized production build...
Failed to compile.

Failed to minify the code from this file:

        ./node_modules/ethereum-blockies-base64/dist/main.js:64

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

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

See here for the issue at hand:
https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#npm-run-build-fails-to-minify

@wbobeirne
Copy link
Contributor

Thanks for the report. Looks like in order to solve this, we'll need to do some ES5 transpiling for the build via Babel. I'll look into that, should be pretty straightforward.

@scelts
Copy link

scelts commented May 30, 2018

same (or similar) here:

static/js/main.2b49b398.js from UglifyJs
SyntaxError: Unexpected token name «i», expected punc «;» [./~/ethereum-blockies-base64/dist/main.js:64,0]

@sweatyc
Copy link

sweatyc commented Aug 10, 2018

+1 for:

static/js/main.50560590.js from UglifyJs
SyntaxError: Unexpected token name «i», expected punc «;» [./~/ethereum-blockies-base64/dist/main.js:64,0]

Using:
truffle-react-box 0.1.0

@sweatyc
Copy link

sweatyc commented Aug 13, 2018

A temporally solution for people like me, who don't know anything about babel, webpack or uglifyjs, just convert the whole main.js in babeljs.io and paste it back

@kielbarry
Copy link

Anyone addressing this?

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

5 participants