You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, there's the same error when running unit test
Failed: StaticInjectorError(DynamicTestModule)[InjectionToken ngxps_config]:
StaticInjectorError(Platform: core)[InjectionToken ngxps_config]:
NullInjectorError: No provider for InjectionToken ngxps_config!
import { NGXPS_CONFIG, defaultPageScrollConfig } from 'ngx-page-scroll-core';
in file spec.ts property provider TestingModule I inject this
{ provide: NGXPS_CONFIG, useValue: defaultPageScrollConfig }
Hi Sebastian,
if you can import NgxPageScrollCoreModule to application you need write with NgxPageScrollCoreModule.forRoot() because there is error like this
logger.service.ts:60 Error: Uncaught (in promise): Error: StaticInjectorError(AppModule)[PageScrollService -> InjectionToken ngxps_config]:
StaticInjectorError(Platform: core)[PageScrollService -> InjectionToken ngxps_config]:
NullInjectorError: No provider for InjectionToken ngxps_config!
It is just for your information.
Have a nice day :)
Michelle
The text was updated successfully, but these errors were encountered: