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
No babel-cli watch mode console output after first compilation #7926
Comments
Hey @jaydenseric! We really appreciate you taking the time to report an issue. The collaborators If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack |
Still isn't fixed. Very confusing. |
I'm running babel-cli with spawn. I need the success messages to trigger some actions after success. Now there's no way to do that. |
Ooof just noticed this as well, very bizarre. |
Any updates on this? Or workarounds? |
As a rough workaround I use
It will report modified and output files now, so at least I can see that it picks up changes and does something. I'd like a "Compilation OK" or something happy like that, but I'll take "src/index.ts -> dest/index.js" until then. |
The issue with that in my case that multiple files can be changed at the same time and I won't know for sure if compilation is finished or not because I dont know the exact number of files changed. |
Happens also on my Mac, using
Nothing is printed after the initial run, although I clearly see Babel works and files are being transpiled into the My package.json
|
Was this ever resolved? I am having this exact issue right now. |
This same issue came up in an online class I'm taking. The instructor, Andrew Mead, came up with a workaround using Chokidar from npm. Simply add this to the beginning of the babel command: CHOKIDAR_USEPOLLING=true |
That will eat all your CPU, especially if you're having many files.
…On Wed, Aug 28, 2019, 00:25 Luke Sedillo ***@***.***> wrote:
This same issue came up in an online class I'm taking. The instructor,
Andrew Mead, came up with a workaround using Chokidar from npm. Simply add
this to the beginning of the babel command: CHOKIDAR_USEPOLLING=true
This might just be an issue with Linux users.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#7926?email_source=notifications&email_token=AAHLJQFRU3QHEPXJBITF3NTQGWSWNA5CNFSM4E7VFM22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5JJSEI#issuecomment-525506833>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAHLJQHPFYJ36FCBX6ZFT3DQGWSWNANCNFSM4E7VFM2Q>
.
|
Also, the non-watch mode has some colours for paths i.E, when errors appear. Would be nice if the Cli would do it similarly. |
Duplicate of # |
Sorry for the additional "+1" message, but this would be really handy to have. It's rough UX without it. If someone wants to point me in the direction of where I might implement this, I'm happy to send a PR. edit: This PR seems to accomplish what we're looking for. https://github.com/babel/babel/pull/6320/files |
probably best to export it as in export CHOKIDAR_USEPOLLING=true |
Currently running
and nothing outputs besides a single |
Bug Report
Current Behavior
The babel-cli in
--watch
mode does not output any messages following the first compilation. It seems as though the CLI is not doing anything even though files are compiling.Input Code
Expected behavior/code
The CLI should display an output summary after every
--watch
mode compilation.Babel Configuration (.babelrc, package.json, cli command)
N/A.
Environment
cli
Possible Solution
Additional context/Screenshots
This issue began with #7439 in v7.0.0-beta.41. The babel-cli has a new a new
--verbose
flag for seeing exactly what files were compiled, but even with the verbose output of what files are being compiled there are no subsequent summary messages. An output summary should be displayed every compilation, regardless of the--verbose
flag.The text was updated successfully, but these errors were encountered: