---
title: "Comment by hem charan on \"The Ultimate Guide To Firebase With Next.JS 🔥\" | Hashnode"
description: "i got this error while Installation of firebase which says: TypeError: Cannot read properties of undefined (reading &#39;apps&#39;)"
url: "https://hashnode.com/posts/the-ultimate-guide-to-firebase-with-nextjs/60b5aea65302e8579db4beef/comment/61deb1284e70945324c597d5"
---

[Discussion](https://hashnode.com/posts/the-ultimate-guide-to-firebase-with-nextjs/60b5aea65302e8579db4beef)

Comment [The Ultimate Guide To Firebase With Next.JS 🔥](https://hashnode.com/posts/the-ultimate-guide-to-firebase-with-nextjs/60b5aea65302e8579db4beef)

[hem charan](https://hashnode.com/@hemcharan)

[Jan 12, 2022](https://hashnode.com/posts/the-ultimate-guide-to-firebase-with-nextjs/60b5aea65302e8579db4beef/comment/61deb1284e70945324c597d5)

i got this error while Installation of firebase which says:

TypeError: Cannot read properties of undefined (reading 'apps')

![error.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1641984205822/L6lXCbt3w.png)

[Mohammed](https://hashnode.com/@mocherfaoui)

[Feb 14, 2022](https://hashnode.com/posts/the-ultimate-guide-to-firebase-with-nextjs/60b5aea65302e8579db4beef/comment/61deb1284e70945324c597d5#reply-620a21d821583d1fa4fa7c1b)

are you using Firebase v9?

v9 had a lot of breaking changes and it is modular(tree-shakable) compared to the namespaced v8

learn more here: [firebase.google.com/docs/web/modular-upgrade](https://firebase.google.com/docs/web/modular-upgrade#update_initialization_code)
