sveltefire
sveltefire copied to clipboard
Update peer dependencies
Just a simple issue:
I installed sveltefire into my project and got the following warning:
WARN Issues with peer dependencies found . └─┬ sveltefire 0.4.2 └── ✕ unmet peer firebase@^9.0.0: found 10.3.1
This should be updated so that the library can be used with the latest Firebase SDK versions. This shouldn't break anything as far as I know.
Had the same issue, though during the installation. To bypass use npm i sveltefire --legacy-peer-deps
I had the same issue with peer dependencies with a new sveltekit + skeleton + firebase + sveltefire app. My app wouldn't build and I had to use some NPM Package Patch tool to update the firebase dependency within Sveltefire. Then everything worked. It was a bit of an annoyance but it worked fine.
A slightly cleaner way of fixing this is to override the dependency. Place this into your package.json
file. $firebase
is a reference to whatever version you have specified in your dependencies
section.
"overrides": { "sveltefire": { "firebase": "$firebase" } }