sveltefire icon indicating copy to clipboard operation
sveltefire copied to clipboard

Update peer dependencies

Open bartaldavid opened this issue 1 year ago • 3 comments

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.

bartaldavid avatar Sep 12 '23 21:09 bartaldavid

Had the same issue, though during the installation. To bypass use npm i sveltefire --legacy-peer-deps

votkon avatar Jan 18 '24 15:01 votkon

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.

InnovateWorldio avatar Mar 26 '24 15:03 InnovateWorldio

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" } }

IanSaucy avatar Apr 23 '24 15:04 IanSaucy