KingSora / OverlayScrollbars

A javascript scrollbar plugin that hides the native scrollbars, provides custom styleable overlay scrollbars, and preserves the native functionality and feel.
https://kingsora.github.io/OverlayScrollbars
MIT License
3.81k stars 214 forks source link

NG9 compile warnings #203

Closed ghost closed 1 year ago

ghost commented 4 years ago

On the first compile in NG9 and OS 1.12.0 you receive those 2 warnings:

Warning: Unable to fully load C:/FS/Visual Studio Code/over/node_modules/overlayscrollbars-ngx/ngc/src/overlayscrollbars.component.js for source-map flattening: ENOENT: no such file or directory, lstat 'C:/FS/Visual Studio Code/over/node_modules/overlayscrollbars-ngx/ngc/src/overlayscrollbars.component.js.map'

Warning: Unable to fully load C:/FS/Visual Studio Code/over/node_modules/overlayscrollbars-ngx/ngc/src/overlayscrollbars.module.js for source-map flattening: ENOENT: no such file or directory, lstat 'C:/FS/Visual Studio Code/over/node_modules/overlayscrollbars-ngx/ngc/src/overlayscrollbars.module.js.map'

It checks for the sourcemaps in src instead of dist

KingSora commented 4 years ago

I've tested this, and it doesn't appear on my end. Maybe i missed something... Could you describe what you did?

ghost commented 4 years ago

Maybe I was not entirely clear: The warnings get thrown in that first NG compile log, where all the ES2015 bundles are compiled. In addition to that I think it's only on the very first npm run start.

KingSora commented 4 years ago

I'll check this again when I have time... Since this is just a warning and strangely only appears on the very first time you compile the app I would classify this as a minor problem.

ghost commented 4 years ago

I did not check if it's actually the case, but if the warning is correct it could have the consequence that one cannot debug OS in e.g. the browser since source maps are absent. Not a big deal for the normal user, though. But if someone wants to trace or narrow down an OS bug before posing an issue, that's a party pooper 😄

GuessWhoSamFoo commented 3 years ago

Seeing a similar issue on angular 10/11.

Warning: Unable to fully load /home/sfoo/go/src/github.com/vmware-tanzu/octant/web/node_modules/overlayscrollbars-ngx/ngc/src/overlayscrollbars.component.js for source-map flattening: ENOENT: no such file or directory, open '/home/sfoo/go/src/github.com/vmware-tanzu/octant/web/node_modules/overlayscrollbars-ngx/ngc/src/overlayscrollbars.component.js.map'

Warning: Unable to fully load /home/sfoo/go/src/github.com/vmware-tanzu/octant/web/node_modules/overlayscrollbars-ngx/ngc/src/overlayscrollbars.module.js for source-map flattening: ENOENT: no such file or directory, open '/home/sfoo/go/src/github.com/vmware-tanzu/octant/web/node_modules/overlayscrollbars-ngx/ngc/src/overlayscrollbars.module.js.map'

Looking into node_modules, the ngc directory is missing.

├── dist
│   ├── overlayscrollbars-ngx.esm.js
│   ├── overlayscrollbars-ngx.esm.js.map
│   ├── overlayscrollbars-ngx.js
│   ├── overlayscrollbars-ngx.js.map
│   └── types
│       ├── index.d.ts
│       ├── index.d.ts.__ivy_ngcc_bak
│       ├── index.d.ts.map
│       ├── index.metadata.json
│       ├── overlayscrollbars.component.d.ts
│       ├── overlayscrollbars.component.d.ts.__ivy_ngcc_bak
│       ├── overlayscrollbars.component.d.ts.map
│       ├── overlayscrollbars.module.d.ts
│       ├── overlayscrollbars.module.d.ts.__ivy_ngcc_bak
│       └── overlayscrollbars.module.d.ts.map
├── __ivy_ngcc__
│   └── dist
│       ├── overlayscrollbars-ngx.esm.js
│       └── overlayscrollbars-ngx.esm.js.map
├── LICENSE
├── package.json
├── README.md
└── src
    ├── index.ts
    ├── overlayscrollbars.component.ts
    └── overlayscrollbars.module.ts
KingSora commented 1 year ago

This should be fixed with overlayscrollbars v2 and the new version of overlayscrollbars-ngx v0.4.0