MCPcopy Index your code
hub / github.com/angular/angular / nodeNotFoundError

Function nodeNotFoundError

packages/core/src/hydration/error_handling.ts:174–180  ·  view source on GitHub ↗
(lView: LView, tNode: TNode)

Source from the content-addressed store, hash-verified

172 * @param tNode the TNode
173 */
174export function nodeNotFoundError(lView: LView, tNode: TNode): Error {
175 const header = 'During serialization, Angular was unable to find an element in the DOM:\n\n';
176 const expected = `${describeExpectedDom(lView, tNode, false)}\n\n`;
177 const footer = getHydrationErrorFooter();
178
179 throw new RuntimeError(RuntimeErrorCode.HYDRATION_MISSING_NODE, header + expected + footer);
180}
181
182/**
183 * Builds a hydration error message when a node is not found at a path location

Callers 1

calcPathForNodeFunction · 0.90

Calls 2

describeExpectedDomFunction · 0.85
getHydrationErrorFooterFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…