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

Log original error with Babel compatibility info #401

Merged
merged 2 commits into from
Nov 20, 2018

Conversation

sdgluck
Copy link
Contributor

@sdgluck sdgluck commented Nov 20, 2018

I encountered a problem where lingui thought I needed to install babel-core version 6 however the actual problem was being obscured because the error message which prompts lingui to log these instructions is not itself shared with the developer.

The actual problem I was having was that the lib babel-preset-react-app was not up-to-date, so the instructions to "please install missing Babel 6 core package" were misleading.

This PR makes the Babel compat. messages also print the original error in order to help people debugging cases like this.

Thanks for a great library!

Edit: Let me know what needs to be done re: tests and I will fix up the PR accordingly.

@tricoder42
Copy link
Contributor

Great idea, thank you! I just made minor fixes with prettier to make linter happier.

@tricoder42 tricoder42 merged commit f7f43db into lingui:master Nov 20, 2018
@tricoder42
Copy link
Contributor

Released in 2.7.3

Photonios pushed a commit to SectorLabs/js-lingui that referenced this pull request Dec 9, 2019
* Log original error with Babel compatibility info

* style: fix linter errors
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 this pull request may close these issues.

2 participants