question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No babel-cli watch mode console output after first compilation

See original GitHub issue

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

babel src -d lib --watch

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

  • Babel version(s): v7.0.0-beta.41 - v7.0.0-beta.46
  • Node/npm version: Node 10/npm 6
  • OS: macOS v10.13.4
  • Monorepo: No
  • How you are using Babel: cli

Possible Solution

Additional context/Screenshots

This issue began with https://github.com/babel/babel/pull/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.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:62
  • Comments:16

github_iconTop GitHub Comments

21reactions
ersinakincicommented, Jan 12, 2019

Any updates on this? Or workarounds?

16reactions
m0onspellcommented, Aug 8, 2018

Still isn’t fixed. Very confusing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Babel CLI
Babel comes with a built-in CLI which can be used to compile files from the command line.
Read more >
Babel didn't work as expected, babel-cli just echos back the ...
I just download Babel using npm ( npm install -g babel-cli ), but when I use babel-cli to compile code, stdout just returns...
Read more >
How to Bundle JavaScript With Rollup — Step-by-Step Tutorial
This week, we're going to build our first project using Rollup, which is a build tool for bundling JavaScript (and stylesheets, but we'll...
Read more >
Debug Node.js Apps using Visual Studio Code
The Visual Studio Code editor includes Node.js debugging support. Set breakpoints, step-in, inspect variables and more.
Read more >
Output Management - webpack
This guide extends on code examples found in the Asset Management guide. ... [webpack-cli] Compilation finished asset index.bundle.js 69.5 KiB [emitted] ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found