Skip to content

No provider for InjectionToken NG_SCROLLBAR #703

@beig

Description

@beig

What are you trying to do?

Suddenly I get the following error:

a bunch of 

debug_node.mjs:15392 NG0912: Component ID generation collision detected. Components '_ScrollbarButton' and '_ScrollbarButton' with selector 'button[scrollbarButton]' generated the same component ID. To fix this, you can change the selector of one of those components or add an extra host attribute to force a different ID. Find more at https://angular.dev/errors/NG0912

reportUnhandledError.js:10 Uncaught RuntimeError: NG0201: No provider for InjectionToken NG_SCROLLBAR found in NodeInjector. Find more at https://angular.dev/errors/NG0201
    at throwProviderNotFoundError (root_effect_scheduler.mjs:846:11)
    at notFoundValueOrThrow (debug_node.mjs:1693:9)
    at lookupTokenUsingModuleInjector (debug_node.mjs:1728:12)
    at getOrCreateInjectable (debug_node.mjs:1766:12)
    at ɵɵdirectiveInject (debug_node.mjs:12343:19)
    at ɵɵinject (root_effect_scheduler.mjs:1032:42)
    at inject2 (root_effect_scheduler.mjs:1118:12)
    at new _ReachedDroppedBase (ngx-scrollbar-reached-event.mjs:8:22)
    at new _NgScrollDropped (ngx-scrollbar-reached-event.mjs:246:5)
    at ReachedDroppedBase_Factory (ngx-scrollbar-reached-event.mjs:106:14)

What troubleshooting steps have you tried?

Removed node_modules folder, re-installeda gain.

This only happens when launching the browser from webstorm using a javascript debug launch configuration

Image

Browsing to http://localhost:4200 from normal chrome/firefox/edge is working

Environment

  • Angular: 20.2.0
  • ngx-scrollbar: 18.0.0
  • Browser(s): 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36'
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions