Skip to content

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

@golyo

Description

@golyo

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';

create-firebase-vite
firebase-getAuth

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions