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

🛑yarn prepare errors in the logs #6415

Closed
wants to merge 1 commit into from
Closed

Conversation

libetl
Copy link
Member

@libetl libetl commented Apr 4, 2019

Issue:

What I did

when yarn prepare is failing, we only see 'FAILED'. Sometimes we are just merging next in our branch and we are unaware of what can have caused the compilation error.

So I propose to display the babel errors in the logs

How to test

Just modify a source and inject a compilation error, then run yarn prepare on the project.

  • Is this testable with Jest or Chromatic screenshots? no
  • Does this need a new example in the kitchen sink apps? no
  • Does this need an update to the documentation? no

If your answer is yes to any of these, please make sure to include it in your PR.

image

@libetl libetl added maintenance User-facing maintenance tasks yarn / npm Yarn / npm acting weird labels Apr 4, 2019
@libetl libetl requested review from igor-dv and ndelangen as code owners April 4, 2019 09:19
@vercel
Copy link

vercel bot commented Apr 4, 2019

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

@@ -15,10 +15,10 @@ function getCommand(watch) {
return `${tsc} ${args.join(' ')}`;
}

function handleExit(code, errorCallback) {
function handleExit(code, stderr, errorCallback) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one will be gone after the @babel/preset-typescript migration.

@libetl libetl requested review from kroeder and shilman April 4, 2019 09:33
kroeder added a commit that referenced this pull request Apr 4, 2019
@kroeder
Copy link
Member

kroeder commented Apr 4, 2019

This PR can be closed. I've added your changes to the babel-typescript branch - thanks for giving me a ping for your change 👍

@kroeder kroeder closed this Apr 4, 2019
@libetl
Copy link
Member Author

libetl commented Apr 4, 2019

Perfect

@libetl libetl deleted the fix/yarn-prepare-errors branch May 12, 2019 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance User-facing maintenance tasks yarn / npm Yarn / npm acting weird
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants