Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

intellisense/autocomplete no longer working with v9 #5649

Closed
MergeCommits opened this issue Oct 21, 2021 · 7 comments
Closed

intellisense/autocomplete no longer working with v9 #5649

MergeCommits opened this issue Oct 21, 2021 · 7 comments
Assignees

Comments

@MergeCommits
Copy link

Describe your environment

  • Operating System: Windows 10
  • Firebase SDK version: 9.1.3
  • IDE: Webstorm and VSCode

Describe the problem

Not sure if this is entirely related to Firebase itself.

With v9, no intellisense is provided for the firebase module. If I write out the import paths manually it does work, but no suggestions are given when writing out function names.

I think it might be happening due to the firebase/* paths being re-exports of the @firebase/* paths making the IDE not index the modules correctly, however I haven't been able to find any workarounds for this yet.

Steps to reproduce:

  • Create a new project with firebase.
  • Start writing our initializeApp or some other exported function.
  • Intellisense either comes up with nothing or suggests the equivalent function in the compat section.
@google-oss-bot
Copy link
Contributor

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@Feiyang1
Copy link
Member

I'm aware that Webstorm has some issues with auto-completion with v9, but I have not heard any issues from VSCode. Can you please clarify if it's only an issue with Webstorm?

@MergeCommits
Copy link
Author

MergeCommits commented Oct 21, 2021

In VSCode, the behaviour is inconsistent.

  • For certain functions like initializeApp and getAuth autocomplete does not trigger.
  • For getFirestore it does autocomplete but it uses the @firebase/firestore module rather than the firebase/firestore one.

@Feiyang1
Copy link
Member

Feiyang1 commented Nov 1, 2021

Can you please try 9.2.0 to see if the situation improved? We made a change in this release, which I hope to solve the issue.

@Feiyang1 Feiyang1 self-assigned this Nov 1, 2021
@MergeCommits
Copy link
Author

MergeCommits commented Nov 2, 2021

Tried testing it with a fresh node_modules directory with ^9.2.0, and unfortunately the issue still persist in both IDEs. The weird anomaly with getFirestore mentioned in my last comment isn't there anymore.

@Feiyang1 Feiyang1 assigned hsubox76 and unassigned Feiyang1 Nov 16, 2021
@MergeCommits
Copy link
Author

MergeCommits commented Nov 30, 2021

Tried this again with 9.5.0 and it now seems to be working in both IDEs.

@MergeCommits
Copy link
Author

I tried this with both 9.5.0 and 9.6.1 and it seems to have randomly stopped working again.

@MergeCommits MergeCommits reopened this Dec 26, 2021
@firebase firebase locked and limited conversation to collaborators Feb 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants