firebase / firebase-js-sdk

Firebase Javascript SDK
https://firebase.google.com/docs/web/setup
Other
4.82k stars 884 forks source link

Cannot resolve symbol 'getAuth' from firebase/auth #8418

Closed golyo closed 2 weeks ago

golyo commented 1 month ago

Operating System

Windows

Browser Version

Google Chrome

Firebase SDK Version

10.12.5

Firebase SDK Product:

Auth

Describe your project's tooling

using Webstorm react typescript with vite

Describe the problem

After vite quickstart the project, install firebase, than open on Webstorm IDE

import { getAuth } from 'firebase/auth'; has error : Cannot resolve symbol 'getAuth'

Other packages has no problem.

Steps and code to reproduce issue

Steps to reproduce:

npm create vite@latest

and after edit App.tsx add lines: import { getAuth } from 'firebase/auth'; Error message: Cannot resolve symbol 'getAuth'

Other packages are working well for example: import { initializeApp } from 'firebase/app'; import { getAnalytics } from 'firebase/analytics'; import { getFirestore } from 'firebase/firestore';

create-firebase-vite firebase-getAuth

golyo commented 1 month ago

node: v20.16.0 npm: 10.8.2

DellaBitta commented 4 weeks ago

Hi @golyo,

I ensured I was used the same node and nvm versions as you but I wasn't able to reproduce this on macOS nor Windows with the latest version of WebStorm v2024.2:

Build #WS-242.20224.342, built on August 8, 2024. Is this the version that you're testing against? If not, does upgrading fix the issue?

Thanks!

google-oss-bot commented 3 weeks ago

Hey @golyo. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot commented 2 weeks ago

Since there haven't been any recent updates here, I am going to close this issue.

@golyo if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.