'React native Expo || Firebase integration || Errors

Im trying to integrate Firebase with my React native Expo project. But, It throws a strange error something like this. Really no idea about What went wrong.

Installed it using : expo install firebase

Expo : 43.0.2 || Firebase : 9.8.0. Thanks in advance.

 While trying to resolve module `firebase` from file 
`D:\PROJDIR\src\Config\Firebase.js`, the package 
`D:\PROJDIR\node_modules\firebase\package.json` was successfully found. 
However, this package itself specifies a `main` module field that could not be resolved 
(`D:\PROJDIR\node_modules\firebase\index`. Indeed, none of these files exist:


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source