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.

npm run dev / yarn dev seems to cache builds

See original GitHub issue

Describe the bug I’ve been using the Svelte template (from yesterday) and occasionally yarn dev or npm run dev just stops rendering new code. I’ve tried re-running yarn dev, resetting the browser cache, etc. The only thing that works is changing the port in package.json eg. "start:dev": "sirv public --single --dev --port 5555"

To Reproduce I’ve had it happen twice since yesterday, but unfortunately, I can’t reproduce it yet. It either just happens after a long enough period of time, or if an error is produced and left for a long enough period of time. I’ll let you know if some pattern emerges, but though it’d throw it up here in case people are having similar issues or have come across it before.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Conduitrycommented, Oct 16, 2019

yarn start/npm run start runs an already-built production version of the app. It does not rebuild the app.

1reaction
Conduitrycommented, Oct 12, 2019

It’s very unlikely this is related to the compiler at all. If you have a more specific reproduction, please open an issue in the sveltejs/template repo.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does npm try to compile a old version of my code?
rename the file; refactor the references to it, so it will compile; npm start; stop it; rename and refactor the file back to...
Read more >
Running Yarn offline | Yarn Blog
The tarballs in “Offline mirror” can be consumed by any version Yarn that will build cache based on them. It is also easier...
Read more >
npm-cache
The npm cache is strictly a cache: it should not be relied upon as a persistent and reliable data store for package data....
Read more >
Caching is very slow for Node.JS projects - gitlab-runner
When adding this folder to the cache then it takes about 1min to decompress it and about 1min to compress it again. A...
Read more >
Yarn | Code Cookbook - Michael Currin - GitHub Pages
Workflows for running Yarn on GitHub Actions. ... this action (like Node/Yarn test and no caching), it seems like an unnecessary ... yarn...
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