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 minify with create-react-app (reftools again) 2.0.0-alpha.29 #566

Closed
PerfectPixel opened this issue Jul 18, 2018 · 3 comments
Closed

Comments

@PerfectPixel
Copy link

In version 2.0.0-alpha.26 and above creating a minified build is not possible anymore:

Creating an optimized production build...
Failed to compile.

Failed to minify the code from this file:

 	./node_modules/reftools/lib/jptr.js:40

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.

The same issue as discussed here: #384 (comment) is appearing again.

You can recreate this issue by updating the dependency in this repo and updating the version to redoc@^2.0.0-alpha.26.

@RomanHotsiy
Copy link
Member

Will work again with alpha.30

@Bad-Listener
Copy link

Hello all!

I am using "redoc": "^2.0.0-alpha.30" and when I try to do npm build, I get the following error as described above.

Failed to minify the code from this file:

    ./node_modules/reftools/lib/jptr.js:40

Any ideas? Thanks!

@RomanHotsiy
Copy link
Member

It should work. I just double-checked it.
Here is the repo: https://github.com/APIs-guru/create-react-app-redoc

Works without any issues.

Make sure you have latest ReDoc version installed

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