Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Rollup watch issue #29

Closed
unlocomqx opened this issue May 1, 2019 · 6 comments
Closed

Rollup watch issue #29

unlocomqx opened this issue May 1, 2019 · 6 comments

Comments

@unlocomqx
Copy link

Watch only works once, after that, changes aren't detected
This solved the issue for me
rollup/rollup#1666 (comment)

Please include it in the template if possible

@frederikhors
Copy link
Contributor

No problem for me on Windows.

Can you write npm versions, package.json, OS?

@unlocomqx
Copy link
Author

Here's the info
node v11.14.0
npm 6.9.0
Linux Mint 19 - 4.15.0-48-generic #51-Ubuntu SMP
package.json

{
  "name": "svelte-app",
  "version": "1.0.0",
  "devDependencies": {
    "npm-run-all": "^4.1.5",
    "rollup": "^1.10.1",
    "rollup-plugin-commonjs": "^9.3.4",
    "rollup-plugin-livereload": "^1.0.0",
    "rollup-plugin-node-resolve": "^4.2.3",
    "rollup-plugin-svelte": "^5.0.3",
    "rollup-plugin-terser": "^4.0.4",
    "sirv-cli": "^0.4.0",
    "svelte": "^3.0.0"
  },
  "scripts": {
    "build": "rollup -c",
    "autobuild": "rollup -c -w",
    "dev": "run-p start:dev autobuild",
    "start": "sirv public",
    "start:dev": "sirv public --dev"
  }
}

@frederikhors
Copy link
Contributor

Linux is the problem.

Windows no problem at all.

Maybe @EmilTholin can help here.

@unlocomqx
Copy link
Author

It's alright, I wanted to raise the issue partly so other people find it when they encounter the same problem as I did
Cheers

@tobias-kuendig
Copy link

tobias-kuendig commented May 21, 2019

I'm having the same problem. If I change livereload('public') to livereload('src') it works but I'm always seeing the previous version (it's always one "save" behind).

I am also on Linux.

Edit: As mentioned in the first comment, disabling chokidar fixes the issue:

// rollup.config.js
export default {
  ...
  watch: {
    chokidar: false
  },
  ...
}

@unlocomqx
Copy link
Author

I'll close this issue for now

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants