(lView: LView, tNode: TNode)
| 172 | * @param tNode the TNode |
| 173 | */ |
| 174 | export 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 |
no test coverage detected
searching dependent graphs…