ngx-scrollbar: Build crashes with the ngx-scrollbar dependency installed
Reproduction
Steps to reproduce:
npm i ngx-scrollbar
npm run build:prod
Link to the failed GitHub Actions workflow: https://github.com/livepoll/live-poll/pull/87/checks?check_run_id=1586042128
Expected Behavior
Successful build
Actual Behavior
Build crashes with following error message:
Error: node_modules/ngx-scrollbar/lib/utils/resize-sensor.directive.d.ts:1:23 - error TS2688: Cannot find type definition file for 'resize-observer-browser'.
1 /// <reference types="resize-observer-browser" />
~~~~~~~~~~~~~~~~~~~~~~~
Environment
- Angular: 11.0.5
- ngx-scrollbar: 7.5.0
- Browser(s): -
- Operating System (e.g. Windows, macOS, Ubuntu): Windows
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 19 (6 by maintainers)
Commits related to this issue
- fix build: remove type reference, closes #336 — committed to MurhafSousli/ngx-scrollbar by MurhafSousli 4 years ago
- fix build: Add resize-observer-browser dependency, closes #336 — committed to MurhafSousli/ngx-scrollbar by MurhafSousli 4 years ago
- Fix build caused by ResizeObserver interface, closes #336 — committed to MurhafSousli/ngx-scrollbar by MurhafSousli 4 years ago
fixed in v7.5.3
@MurhafSousli I am also getting the same issue.
Anyone please tell me the solution. Version I used: 7.5.2. Angular version 9
Same here with Angular 11.0.5.
I’m also getting this issue!!!,