Skip to main content

ERROR Error: Uncaught (in promise): Error: StaticInjectorError

ERROR Error: Uncaught (in promise): Error: StaticInjectorError

ERROR Error: Uncaught (in promise): Error: StaticInjectorError[...Service]:
  StaticInjectorError[CustomFilterServiceService]: 
    NullInjectorError: No provider for ...Service!
    at _NullInjector.get (core.js:993)
    at resolveToken (core.js:1281)
    at tryResolveToken (core.js:1223)
    at StaticInjector.get (core.js:1094)
    at resolveToken (core.js:1281)
    at tryResolveToken (core.js:1223)
    at StaticInjector.get (core.js:1094)
    at resolveNgModuleDep (core.js:10878)
    at NgModuleRef_.get (core.js:12110)
    at resolveDep (core.js:12608)
    at _NullInjector.get (core.js:993)
    at resolveToken (core.js:1281)
    at tryResolveToken (core.js:1223)
    at StaticInjector.get (core.js:1094)
    at resolveToken (core.js:1281)
    at tryResolveToken (core.js:1223)
    at StaticInjector.get (core.js:1094)
    at resolveNgModuleDep (core.js:10878)
    at NgModuleRef_.get (core.js:12110)
    at resolveDep (core.js:12608)
    at resolvePromise (zone.js:824)
    at resolvePromise (zone.js:795)
    at eval (zone.js:873)
    at ZoneDelegate.invokeTask (zone.js:425)
    at Object.onInvokeTask (core.js:4744)
    at ZoneDelegate.invokeTask (zone.js:424)
    at Zone.runTask (zone.js:192)
    at drainMicroTaskQueue (zone.js:602)
    at ZoneTask.invokeTask [as invoke] (zone.js:503)
    at invokeTask (zone.js:1540)

Solution 1:


Import your custom service in app.modules.ts file providers array property

Comments

Popular posts from this blog

Can't bind to 'value' since it isn't a known property of 'mat-option'.

Can't bind to 'value' since it isn't a known property of 'mat-option'. platform-browser-dynamic.js:230 Uncaught Error: Template parse errors: Can't bind to 'value' since it isn't a known property of 'mat-option'. If 'mat-option' is an Angular component and it has 'value' input, then verify that it is part of this module. If 'mat-option' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("lay" name=""> Solution 1: Add  import {MatSelectModule} from '@angular/material/select'; in app.module.ts file. And specify in imports property of NgModule.

'mat-grid-tile' is not a known element

'mat-grid-tile' is not a known element platform-browser-dynamic.js:230 Uncaught Error: Template parse errors: 'mat-grid-tile' is not a known element: 1. If 'mat-grid-tile' is an Angular component, then verify that it is part of this module. 2. If 'mat-grid-tile' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. (" Solution 1: import {MatGridListModule} from '@angular/material/grid-list'; in app.modules.ts And specify MatGridListModule in the import property.

Can't bind to 'disabled' since it isn't a known property of 'div

Can't bind to 'disabled' since it isn't a known property of 'div platform-browser-dynamic.js:230 Uncaught Error: Template parse errors: Can't bind to 'disabled' since it isn't a known property of 'div'  at syntaxError (compiler.js:485)     at TemplateParser.parse (compiler.js:24631)     at JitCompiler._parseTemplate (compiler.js:34442)     at JitCompiler._compileTemplate (compiler.js:34417)     at eval (compiler.js:34318)     at Set.forEach (<anonymous>)     at JitCompiler._compileComponents (compiler.js:34318) Solution 1: The div tag does not have a disabled attribute in DOM. Therefore, disabled attribute cannot be apply to the div tag.