Closed etienned-za closed 5 months ago
After investigating, it seems that "Native Federation" is altering Angular build system, there are packages ngx-scrollbar
depends on internally and the "Native Federation" is not happy with it. it is even complaining about rxjs packages imports. I would just throw it away from the project.
I cannot help you with this as it is not an issue related to this package
Thanks for your response and investigation. Native Federation is unfortunately not something I can just throw away. The app I am building needs to support micro-frontends. I can perhaps see if ngx-scrollbar
works with the older Webpack Module Federation instead. I opted out of using iFrames for micro-frontends.
What am I trying to do?
Create an app using Angular v17.3.0 and ngx-scrollbar v14.1.0. This app needs to use Angular Native Federation and the new esbuild system.
Reproduction (FYI, I don't get these issues with v13.0.2)
Steps to reproduce:
ng new ngx-scollbar-test
npm i ngx-scollbar
NgScrollbarModule
to the imports array inapp.component.ts
Environment
TLDR; Issue #1: https://stackblitz.com/edit/ngx-scrollbar-h9az15 (build error, and site does not load) Issue #2: https://stackblitz.com/edit/ngx-scrollbar-cx6u8r (Press F12 to see Rxjs error in console)
When performing the steps listed above, I receive the following error "Could not resolve "@angular/material/select". Below is the CLI output
I can resolve this error by installing the @angular/material package:
npm i @angular/material
. However, after loading the page I receive another error:_