Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not compatible with Angular Ivy #5

Open
cytrics opened this issue May 21, 2024 · 2 comments
Open

not compatible with Angular Ivy #5

cytrics opened this issue May 21, 2024 · 2 comments

Comments

@cytrics
Copy link

cytrics commented May 21, 2024

Hey, would it be possible to update the alphabetical-scroll-bar to angular 17? It's a really cool component and currently I get the error "This likely means that the library (alphabetical-scroll-bar) which declares AlphabeticalScrollBarModule is not compatible with Angular Ivy"
Thanks already and would be really cool

@mooalot
Copy link
Owner

mooalot commented May 21, 2024

Hi, you can use the https://www.npmjs.com/package/index-scrollbar package in your angular project. Its the same thing, just built using stenciljs instead. Youll have to use CUSTOM_ELEMENTS_SCHEMA and defineCustomElements like in this example in your app.module.ts

`import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';

import { AppComponent } from './app.component';
import { defineCustomElements } from 'index-scrollbar/loader';

defineCustomElements(window);
@NgModule({
declarations: [AppComponent],
imports: [BrowserModule],
providers: [],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
bootstrap: [AppComponent],
})
export class AppModule {}
`

@cytrics
Copy link
Author

cytrics commented May 22, 2024

Hi,
yes, thank you, that's exactly what I need :-)

BR,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants