angularfire icon indicating copy to clipboard operation
angularfire copied to clipboard

Firebase Database (${JSCORE_VERSION}) INTERNAL ASSERT FAILED: Unknown node type

Open weilinzung opened this issue 2 years ago • 1 comments

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: <root> ; 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

weilinzung avatar Aug 15 '22 12:08 weilinzung

This issue does not seem to follow the issue template. Make sure you provide all the required information.

google-oss-bot avatar Aug 15 '22 12:08 google-oss-bot