-
Notifications
You must be signed in to change notification settings - Fork 986
Closed
Description
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
- with params, name: test-firebase, framework: react, variant_ Typescript
cd test-firebase
npm i --save firebase
npm i
Open project in Webstorm
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';

