Troubleshooting
Reset all caches and builds
When working intensively with javascript, or, you are unsure if your test has the same code as you see in your browser, run commands like theese:
1.) What you will mostly need:
rm -rf node_modules public/vite public/vite-* public/svelte-ssr tmp/cache/vite && npm i && vite build && npm run build:ssr2.) More:
- delete browser cache
- restart the app
3.) Less likely to be needed:
bundle exec rails svelte_on_rails:cache:clearThis deletes the Redis cache. There are also tasks for checking the contents of the cache.
Find Errors
Some commands that may help for rare case or very special errors:
bundle exec rails svelte_on_rails:cache:showThis can be helpful, especially when working with advanced props like
_uncached:bundle exec rails svelte_on_rails:cache:show_sveltebundle exec rails svelte_on_rails:cache:show_contents