Firebase Database (${JSCORE_VERSION}) INTERNAL ASSERT FAILED: Unknown node type
- Vorherrschende Sprache
- TypeScript
- Sterne
- 7.8k
- Forks
- 2.2k
- Ø Merge
- 22 Std. 28 Min.
- Gemergte PRs (30 T.)
- 6
Beschreibung
### Version info
**Angular: 14**
**Firebase: 9.9.1**
**AngularFire: 7.4.1**
**Other (e.g. Ionic/Cordova, Node, browser, operating system):**
Node 16.13.0
macOS
### How to reproduce these conditions
#### Steps to set up and reproduce
When a local or production build is served, we have the below console error:
```
zone.js:1061 Unhandled Promise rejection: Firebase Database (${JSCORE_VERSION}) INTERNAL ASSERT FAILED: Unknown node type ; Zone: ; Task: setTimeout ; Value: Error: Firebase Database (${JSCORE_VERSION}) INTERNAL ASSERT FAILED: Unknown node type
```
Also, not sure if because above max call stack also showed:
```
polyfills.js:29650 Uncaught RangeError: Maximum call stack size exceeded
at ChildrenNode.isLeafNode (vendor.js:286427:13)
at ChildrenNode.equals (vendor.js:64135:22)
at ChildrenNode.equals (vendor.js:64140:31)
at ChildrenNode.equals (vendor.js:64140:31)
at ChildrenNode.equals (vendor.js:64140:31)
at ChildrenNode.equals (vendor.js:64140:31)
at ChildrenNode.equals (vendor.js:64140:31)
at ChildrenNode.equals (vendor.js:64140:31)
at ChildrenNode.equals (vendor.js:64140:31)
at ChildrenNode.equals (vendor.js:64140:31)
```
#### Source code from tracing:
```
/**
* Returns an Error object suitable for throwing.
*/
const assertionError = function (message) {
return new Error('Firebase Database (' +
CONSTANTS.SDK_VERSION +
') INTERNAL ASSERT FAILED: ' +
message);
};
```
### Expected behavior
Build runs on both local and production without errors
### Actual behavior
Build runs on both local and production has errors
Beitragsleitfaden
Rechercherichtung
Beginne damit, die lokalen und Produktions-Builds mit Angular 14, Firebase 9.9.1, AngularFire 7.4.1 und Node 16.13.0 zu reproduzieren. Verfolge die Quelle von Firebase Database assertionError und den im Bericht gezeigten ChildrenNode.equals-Stack. Erledigt ist die Aufgabe, wenn beide Builds ohne den Fehler „unbekannter Knotentyp“ oder die Ausnahme wegen des maximalen Aufrufstapels ausgeführt werden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- angular, firebase, typescript
- Bereich
- database
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100