firebase / firebase/firebase-js-sdk

`@firebase/firestore: Firestore (10.1.0): INTERNAL UNHANDLED ERROR: TypeError: e.toDescriptor is not a function`

Open
#7,532 6 comments 1 reaction 1 assignee Claimed by @MarkDuckworth View on GitHub
api: firestore needs-attention question stack:Other
Dominant language
TypeScript
Stars
5.1k
Forks
1k
Avg merge
2d 21h
Merged PRs (30d)
37

Description

### Operating System

Windows

### Browser Version

Deno fresh

### Firebase SDK Version

10.1.0

### Firebase SDK Product:

Firestore

### Describe your project's tooling

Deno fresh 1.3.0
SDK import from esm.sh

### Describe the problem

**@firebase/firestore: Firestore (10.1.0): INTERNAL UNHANDLED ERROR: TypeError: e.toDescriptor is not a function**

I just want to set simple data

```ts
const db = getFirestore(firebaseApp)
const docRef = doc(db, 'app', 'test')
await setDoc(docRef, {
name: 'test',
})
```

or get data

```ts
const docSnap = await getDoc(docRef)
console.info(docSnap.data())

```

### Steps and code to reproduce issue

```ts
const db = getFirestore(firebaseApp)
const docRef = doc(db, 'app', 'test')
await setDoc(docRef, {
name: 'test',
})
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.