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.

babel-watch stuck on >>> RESTARTING <<<

See original GitHub issue

I have a task in my package.json which does the following:

scripts: {
  "watch": "babel-watch tests/run-jasmine.js --presets es2015 --watch",
}

This used to work, but nowadays (in any 2.0.x version), the task stalls on >>> RESTARTING <<<. No significant cpu usage as far as I can tell. The only major change we did to our project recently was upgrade from Node 4.5 to Node 6.9/6.10, the latest LTS versions.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:7
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
mjanssencommented, Jul 19, 2017

@zaaack When will there be a fix pushed to the repo? The current version (2.0.7 on npmjs) still hangs on >>> RESTARTING <<< when an error occurs.

For now the fix above will help, but editing your modules feels kinda wrong.

0reactions
STRMLcommented, Jan 9, 2021

You need to upgrade your preset versions too.

On Sat, Jan 9, 2021 at 8:08 AM Prasanna Reddy notifications@github.com wrote:

Could you try this with the latest version (7.2.0) @prasanna3000 https://github.com/prasanna3000 ?

My babel-watch version is really old with 2.0.7 : ) I tried upgrading it to 7.2.0, to get the following output

throw new Error(Plugin/Preset files are not allowed to export objects, only functions. In ${filepath}); ^

Error: Plugin/Preset files are not allowed to export objects, only functions. In C:\Users\ipras\Documents\OfficeDocuments\MATCH\MATCH_Web_Backend\anatomy_backEnd\node_modules\babel-preset-es2015\lib\index.js at createDescriptor (path\node_modules@babel \core\lib\config\config-descriptors.js:178:11) at items.map (path\node_modules@babel \core\lib\config\config-descriptors.js:109:50) at Array.map () at createDescriptors (path\node_modules@babel \core\lib\config\config-descriptors.js:109:29) at createPresetDescriptors (path\node_modules@babel \core\lib\config\config-descriptors.js:101:10) at presets (path\node_modules@babel \core\lib\config\config-descriptors.js:47:19) at mergeChainOpts (path\node_modules@babel \core\lib\config\config-chain.js:416:26) at path\node_modules@babel\core\lib\config\config-chain.js:374:7 at Generator.next () at loadFileChain (path\node_modules@babel \core\lib\config\config-chain.js:228:24) npm ERR! code ELIFECYCLE

I think it is because I changed only babel version…but not upgraded the code according to it. And to my surprise, the restart issue is encountered some times and at other times it is working as usual… I do not have much experience in web development. Any solution to fix this or possible reasons behind facing it is very much appreciated

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/kmagiera/babel-watch/issues/50#issuecomment-757170334, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJEKP7A65G5E3TCTMWN7ADSZBIMXANCNFSM4DB5VJUQ .

Read more comments on GitHub >

github_iconTop Results From Across the Web

gulp watch with babel then pm2 restart - Stack Overflow
First, you're not watching the right way. Then, you should keep things separated. That's how I'd do: var paths = { babel: '....
Read more >
babel-watch - npm
Start using babel-watch in your project by running `npm i babel-watch`. ... babel and all its deps every time we restart the JS...
Read more >
How to Fix Apple Watch Stuck in Boot Loop - AppleToolBox
If your Apple Watch is stuck in an endless boot loop, force restart your iPhone and Watch. Then disable all app notifications.
Read more >
Masked Wolf - Astronaut In The Ocean (Lyrics) | BABEL
Masked Wolf - Astronaut In The Ocean Lyrics BABELAstronaut In The Ocean by Masked Wolf lyric videoSubscribe to BABEL here: ...
Read more >
OMC - How Bizarre (Lyrics) | BABEL - YouTube
OMC - How Bizarre Lyrics BABELHow Bizarre by OMC lyric videoSubscribe to BABEL here: http://bit.ly/babelchannelCheck out YUNGBLUD's new ...
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