ngx-scrollbar: Build crashes with the ngx-scrollbar dependency installed

Reproduction

Steps to reproduce:

  1. npm i ngx-scrollbar
  2. 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

Most upvoted comments

fixed in v7.5.3

@MurhafSousli I am also getting the same issue. image Anyone please tell me the solution. Version I used: 7.5.2. Angular version 9

@MurhafSousli I am also getting the same issue. image Anyone please tell me the solution. Version I used: 7.5.2. Angular version 9

Same here with Angular 11.0.5.

@MurhafSousli I am also getting the same issue. image Anyone please tell me the solution. Version I used: 7.5.2. Angular version 9

I’m also getting this issue!!!,

image An error also appeared