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

Production Build: Failed to minify the code #1652

Closed
frogg opened this issue Aug 22, 2018 · 4 comments · May be fixed by saurabharch/Rocket.Chat#1
Closed

Production Build: Failed to minify the code #1652

frogg opened this issue Aug 22, 2018 · 4 comments · May be fixed by saurabharch/Rocket.Chat#1

Comments

@frogg
Copy link

frogg commented Aug 22, 2018

I am using KaTeX in a react JS project.
On my computer running yarn start (react-scripts start) for running the debug build works fine.

But when I want to 'compile' it for the use in production I always get an error message from Katex:
npm run build:

yarn run v1.7.0
$ react-scripts build
Creating an optimized production build...
Failed to compile.

Failed to minify the code from this file:

 	./node_modules/katex/dist/katex.mjs:5

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

error Command failed with exit code 1.

This doesn't really make sense to me because obviously katex.mjs is already minified. Anyone has an idea how to fix this? Thanks!

@frogg frogg changed the title Production Build: Production Build: Failed to minify the code Aug 22, 2018
@ylemkimon
Copy link
Member

ylemkimon commented Aug 22, 2018

@frogg @dlrenz @RobZuazua @cocokiri We have published v0.10.0-rc.1, which hopefully fixes the issue. Please try it and let me know. I apologize for inconveniences.

@ylemkimon
Copy link
Member

I'll do some kinds of post-mortem when I have time.

@frogg
Copy link
Author

frogg commented Aug 22, 2018

😱 wow 💯 thanks 🚀 a 🎉 lot 👏 that 💪 was 👍 quick! 🙌

I just ran yarn build successfully without any problems.

@kevinbarabash
Copy link
Member

@frogg thanks for checking the new release and reporting back.

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

Successfully merging a pull request may close this issue.

3 participants