Giter VIP home page Giter VIP logo

Comments (6)

tobias-kuendig avatar tobias-kuendig commented on August 31, 2024 4

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
  },
  ...
}

from template.

frederikhors avatar frederikhors commented on August 31, 2024

No problem for me on Windows.

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

from template.

unlocomqx avatar unlocomqx commented on August 31, 2024

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"
  }
}

from template.

frederikhors avatar frederikhors commented on August 31, 2024

Linux is the problem.

Windows no problem at all.

Maybe @EmilTholin can help here.

from template.

unlocomqx avatar unlocomqx commented on August 31, 2024

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

from template.

unlocomqx avatar unlocomqx commented on August 31, 2024

I'll close this issue for now

from template.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.