Closed ghost closed 1 year ago
I've tested this, and it doesn't appear on my end. Maybe i missed something... Could you describe what you did?
npm run start
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
.
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.
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 😄
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
This should be fixed with overlayscrollbars
v2
and the new version of overlayscrollbars-ngx
v0.4.0
On the first compile in NG9 and OS 1.12.0 you receive those 2 warnings:
It checks for the sourcemaps in
src
instead ofdist