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.

`rollup -c -w` exits without any error.

See original GitHub issue

I have some new data, so I thought I’d gather the relevant issues here.

Even worst for me with svelte template: command exit (rollup -c -w) without any error. Removing livereload from the config solve the issue: command works fine. I was wondering if it was only me but seems like I’m not alone: https://github.com/sveltejs/template/issues/133 _Originally posted by @sansnom in https://github.com/thgh/rollup-plugin-livereload/issues/46#issuecomment-645471396_

I’ve had this issue sometimes and just now I found that I accidentally had another terminal with rollup -c -w running in the same working directory.

So somehow the watching AND livereload plugin has a problem.

With one running instance with watch and livereload, the second instance…

  • rollup build: works OK.
  • rollup watch, livereload not called: works OK.
  • rollup watch with livereload enabled: silently exits. <-- our issue

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
avimarcommented, Jun 30, 2020

Oh! Figured it out, I think. It seems livereload always binds to port 35729. It’s running into a port conflict.

I ran into the same issue when I had rollup with livereload in two different work directories.

So we can launch an instance on a different port - https://github.com/thgh/rollup-plugin-livereload/blob/1bbcf8f2ea20c2adf554317b0c00b8355d7aaaca/src/index.js#L22

e.g. !production && livereload({watch: 'public', port: 35730}),

Not sure the best way to proceed - try to launch and try again with a new port? Always pass a random port? Possibly other options.

1reaction
avimarcommented, Jul 1, 2020

Nice catch ! On Windows, the port is taken by “Intel® Active Management Technology Local Manageability Service” (LMS.exe).

Oh wow, for me on windows 10, it was only taken when I was running a live reload in another cli.

Regardless, we have a port usage issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

rollup.js
Rollup is a module bundler for JavaScript which compiles small pieces of code ... Exit the build with an error if any warnings...
Read more >
rollup in watch mode building with two versions of rollup
When I run rollup -cw , Rollup bundles my app with Rollup v2.2.0. ... Rollup Core) Error: Could not load /path/to/the-app/node_modules/@ ...
Read more >
Amazon CloudWatch FAQs - Amazon Web Services (AWS)
Q: What is Amazon CloudWatch? Amazon CloudWatch is a monitoring service for AWS cloud resources and the applications you run on AWS.
Read more >
firestore-mobx - UNPKG
The CDN for firestore-mobx. ... 16, "build:watch": "rollup -cw",. 17, "test": "echo \"Error: no test specified\" && exit 0",. 18, "lint": "eslint 'src/**/*....
Read more >
FASTRAX® - Rite-Hite
NO. FSTXN JaNUaRy 2015. FASTRAX®. TABLE OF CONTENTS. CHAPTER 1 ... The green button (J) opens and resets the door after a fault....
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