-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
TS 4.1.2 Cannot find name 'FieldValue' (solved in 4.2) #41629
Comments
@sandersn, does this look like something you intentionally fixed for 4.2? It is a pretty bizarre error. Would it be a candidate to backport? (Adding screenshot because I literally didn’t believe we would ever say |
I bisected it and the error was introduced in |
Thanks 🕵️! That makes this a duplicate of #41422. We’ll discuss putting it in the next patch release. |
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
In TS 4.1.2, depending on how you import
FieldValue
(a firestore type), the class won't be defined. This affects only 4.1.2, as it seems to have been fixed in 4.2.TypeScript Version: 4.1.2
Search Terms:
FieldValue undefined cannot
Code
Expected behavior:
No error is raised.
Actual behavior:
Note that the code correctly prints out:
Note also that the following code compiles without errors:
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered: