MurhafSousli / ngx-scrollbar

Custom overlay-scrollbars with native scrolling mechanism
https://ngx-scrollbar.netlify.app/
MIT License
618 stars 99 forks source link

ngtypecheck.d.ts not found #633

Closed daniel-sc closed 3 months ago

daniel-sc commented 3 months ago

Reproduction

Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/ngx-scrollbar

Steps to reproduce:

  1. use v15.1.1
  2. run ng serve

Expected Behavior

Build should succeed.

Actual Behavior

I get the following error:

ng serve -c int

Application bundle generation failed. [30.824 seconds]

X [ERROR] TS6053: File 'C:/devsbb/projekte/cargo-hub-ui/node_modules/ngx-scrollbar/smooth-scroll/public_api.ngtypecheck.d.ts' not found. [plugin angular-compiler]

    node_modules/ngx-scrollbar/smooth-scroll/public_api.d.ts:1:21:
      1 │ /// <reference path="public_api.ngtypecheck.d.ts" />
        ╵                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~

X [ERROR] TS6053: File 'C:/devsbb/projekte/cargo-hub-ui/node_modules/ngx-scrollbar/smooth-scroll/smooth-scroll-manager.ngtypecheck.d.ts' not found. [plugin angular-compiler]

    node_modules/ngx-scrollbar/smooth-scroll/smooth-scroll-manager.d.ts:1:21:
      1 │ /// <reference path="smooth-scroll-manager.ngtypecheck.d.ts" />
        ╵                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

X [ERROR] TS6053: File 'C:/devsbb/projekte/cargo-hub-ui/node_modules/ngx-scrollbar/smooth-scroll/smooth-scroll.ngtypecheck.d.ts' not found. [plugin angular-compiler]

    node_modules/ngx-scrollbar/smooth-scroll/smooth-scroll.d.ts:1:21:
      1 │ /// <reference path="smooth-scroll.ngtypecheck.d.ts" />
        ╵                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

X [ERROR] TS6053: File 'C:/devsbb/projekte/cargo-hub-ui/node_modules/ngx-scrollbar/smooth-scroll/smooth-scroll.model.ngtypecheck.d.ts' not found. [plugin angular-compiler]

    node_modules/ngx-scrollbar/smooth-scroll/smooth-scroll.model.d.ts:1:21:
      1 │ /// <reference path="smooth-scroll.model.ngtypecheck.d.ts" />
        ╵                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Environment

daniel-sc commented 3 months ago

Note: I had a similar issue at some other lib. There I could resolve it by using typescript 5.5 - see https://github.com/angular/angular/issues/56945

cesaric commented 3 months ago

Confirming the same error on 15.1.1:

/angular/node_modules/ngx-scrollbar/smooth-scroll/public_api.ngtypecheck.d.ts' not found. [plugin angular-compiler]

MurhafSousli commented 3 months ago

Note: I had a similar issue at some other lib. There I could resolve it by using typescript 5.5 - see angular/angular#56945

It seems that packages built with ng-packagr 18.1.0 requires TS 5.5. What do we do at this point?

daniel-sc commented 3 months ago

@MurhafSousli I think upgrading this project to TS 5.5 should be the best solution. As it is only a devDependency this should not impact downstream projects.