npm run dev / yarn dev seems to cache builds
See original GitHub issueDescribe 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:
- Created 4 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
yarn start
/npm run start
runs an already-built production version of the app. It does not rebuild the app.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.