(host: Node, path: string)
| 186 | * @param path the path to the node |
| 187 | */ |
| 188 | export function nodeNotFoundAtPathError(host: Node, path: string): Error { |
| 189 | const header = |
| 190 | `During hydration Angular was unable to locate a node ` + |
| 191 | `using the "${path}" path, starting from the ${describeRNode(host)} node.\n\n`; |
| 192 | const footer = getHydrationErrorFooter(); |
| 193 | |
| 194 | markRNodeAsHavingHydrationMismatch(host); |
| 195 | throw new RuntimeError(RuntimeErrorCode.HYDRATION_MISSING_NODE, header + footer); |
| 196 | } |
| 197 | |
| 198 | /** |
| 199 | * Builds the hydration error message in the case that dom nodes are created outside of |
no test coverage detected
searching dependent graphs…