(doc) add info about clearing caches during development

This commit is contained in:
Valentyne Stigloher 2024-12-29 14:35:59 +01:00
parent 3c81de9c16
commit 9902e6fd7a

View File

@ -178,6 +178,14 @@ so to test them, you have to build a production build (`make deploy` and `nuxt s
### Troubleshooting
#### Invalid caches after changing code
Due to how [caches in Nitro](https://nitro.build/guide/cache) work, they automatically invalidate during development
when their function changes. However, this heuristic does not cover other functions the cached function depends on.
You can manually clear caches:
```bash
rm -rf .nuxt/cache
```
#### Module did not self-register
If you encounter an error `Module did not self-register`, triggered by the `canvas` dependency,