ng-multiselect-dropdown icon indicating copy to clipboard operation
ng-multiselect-dropdown copied to clipboard

NullInjectorError: No provider for ListFilterPipe!

Open contactipraju opened this issue 3 years ago • 5 comments

Angular version: ~10.2.1

ng-multiselect-dropdown version: ^0.3.0

Description of issue: Getting the following run-time error in console, when implemented the sample from https://www.npmjs.com/package/ng-multiselect-dropdown

core.js:4442 ERROR NullInjectorError: R3InjectorError(AppModule)[ListFilterPipe -> ListFilterPipe -> ListFilterPipe]: NullInjectorError: No provider for ListFilterPipe! at NullInjector.get (http://localhost:4200/vendor.js:41066:27) at R3Injector.get (http://localhost:4200/vendor.js:51185:33) at R3Injector.get (http://localhost:4200/vendor.js:51185:33) at R3Injector.get (http://localhost:4200/vendor.js:51185:33) at NgModuleRef$1.get (http://localhost:4200/vendor.js:64314:33) at Object.get (http://localhost:4200/vendor.js:64011:35) at getOrCreateInjectable (http://localhost:4200/vendor.js:44222:39) at Module.ɵɵdirectiveInject (http://localhost:4200/vendor.js:54715:12) at NodeInjectorFactory.MultiSelectComponent_Factory [as factory] (http://localhost:4200/modules-tplan-editor-tplan-editor-module.js:3462:174) at getNodeInjectable (http://localhost:4200/vendor.js:44327:44)

Steps to reproduce: Just load a page with sample implementation

Expected result: Dropdown should appear

Actual result: Nothing is loaded and throwing a JS error

Demo: Please share sample code link using StackBlitz or codesandbox Sample at: https://www.npmjs.com/package/ng-multiselect-dropdown

Any relevant code:


contactipraju avatar Mar 04 '21 21:03 contactipraju

Yup, I get exactly the same error, when I try and run their demo.

MikeInSwitzerland avatar May 03 '21 09:05 MikeInSwitzerland

I'm experiencing the exact same error in latest version, any updates, pls?

hackermanmx avatar Apr 02 '22 16:04 hackermanmx

Happens to me too . I saw the issue when I load the ng-multiselectdropdown in a bootstrap modal when using NgbModal.open(Component) On page load it works fine.

If I keep NgMultiSelectDropDownModule.forRoot() in app.module.ts , it works fine

subhasishdash avatar Jul 11 '22 10:07 subhasishdash

Happens to me too . I saw the issue when I load the ng-multiselectdropdown in a bootstrap modal when using NgbModal.open(Component) On page load it works fine.

If I keep NgMultiSelectDropDownModule.forRoot() in app.module.ts , it works fine

This actually solved it, even though I had it referenced in a shared module, this fixed it. Thanks for sharing!

hackermanmx avatar Jul 12 '22 03:07 hackermanmx

Happens to me too . I saw the issue when I load the ng-multiselectdropdown in a bootstrap modal when using NgbModal.open(Component) On page load it works fine.

If I keep NgMultiSelectDropDownModule.forRoot() in app.module.ts , it works fine

This fixed my issue

itzmesurya avatar Aug 22 '22 03:08 itzmesurya