angularfire icon indicating copy to clipboard operation
angularfire copied to clipboard

Angular v4 + angularfire2 + "yarn install" => ng build --prod => ERROR

Open ovrmrw opened this issue 9 years ago • 1 comments

When I played with the repository below, a build error has occurred. https://github.com/firebase/friendlychat/tree/master/cloud-functions-angular-start

I did yarn install instead of npm install that causes Angular v2 installed under node_modules/angularfire2 in spite of Angular v4 based.

Maybe you should change from dependencies to peerDependencies for Angular packages.

ovrmrw avatar Apr 13 '17 02:04 ovrmrw

@ovrmrw AngularFire2 re-writes package.json to switch dependencies to peerDependencies when releasing. We are still not v4 compatible as you will get peer deeps warnings and opaque token deprecation warnings. From what I know, everything should still work despite these warnings. We are working on the fix and will have a @next candidate soon. Follow #843 for the main source.

davideast avatar Apr 13 '17 17:04 davideast