Firebase Database (${JSCORE_VERSION}) INTERNAL ASSERT FAILED: Unknown node type
- Lingua principale
- TypeScript
- Stelle
- 7.8k
- Fork
- 2.2k
- Merge medio
- 22h 28m
- PR unite (30g)
- 6
Descrizione
### 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
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia riproducendo le build locale e di produzione con Angular 14, Firebase 9.9.1, AngularFire 7.4.1 e Node 16.13.0. Traccia l’origine di assertionError di Firebase Database e lo stack di ChildrenNode.equals mostrato nel report. Il lavoro è completato quando entrambe le build vengono eseguite senza l’errore di tipo di nodo sconosciuto o l’eccezione di superamento dello stack delle chiamate.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- angular, firebase, typescript
- Ambito
- database
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100