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

Function cyclicDependencyError

packages/core/src/render3/errors_di.ts:24–27  ·  view source on GitHub ↗
(token: string, path?: string[])

Source from the content-addressed store, hash-verified

22
23/** Creates a circular dependency runtime error. */
24export function cyclicDependencyError(token: string, path?: string[]): Error {
25 const message = ngDevMode ? `Circular dependency detected for \`${token}\`.` : '';
26 return createRuntimeError(message, RuntimeErrorCode.CYCLIC_DI_DEPENDENCY, path);
27}
28
29/** Creates a circular dependency runtime error including a dependency path in the error message. */
30export function cyclicDependencyErrorWithDetails(token: string, path: string[]): Error {

Callers 3

hydrateMethod · 0.90
getNodeInjectableFunction · 0.90

Calls 1

createRuntimeErrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…