Open charmbv opened 2 months ago
π Hey @charmbv
Thanks for flagging your first issue! We're on it! Please provide all the details you can
Got a fix? Send a PR! π Check out our local dev guide
If you like this project, please βstarβ our repo.
@charmbv With Angular 17+, we use standalone components.
https://udayvunnam.github.io/xng-breadcrumb/#/quickstart?id=standalone-components
Try this -
import { BreadcrumbComponent, BreadcrumbItemDirective } from 'xng-breadcrumb';
@Component({
standalone: true,
imports: [RouterModule, BreadcrumbComponent, BreadcrumbItemDirective],
templateUrl: './app.component.html',
...
})
export class AppComponent {}
@udayvunnam Won't work as I'm not using standalone components. This is not a requirement for using Angular 17+ so it shouldn't be a requirement for this library as well.
Any update on this?
@charmbv @TomislavMedved @charmbv Try using the lower version npm install xng-breadcrumb@9.0.0
their might be some dependency errors but if you Confidentially find everything correct then run this command npm install xng-breadcrumb@9.0.0 --legacy-peer-deps
.
This is not a proper solution to the issue. I've been using overrides
but will be looking for another solution.
After migrating to Angular 17, I've encountered the same issue. This library is now requiring unexpected refactoring.
Any update?
Instead of
import { BreadcrumbModule } from 'xng-breadcrumb';
@NgModule({
imports: [
BreadcrumbModule,
],
Use
import { BreadcrumbComponent, BreadcrumbItemDirective } from 'xng-breadcrumb';
@NgModule({
imports: [
BreadcrumbComponent, BreadcrumbItemDirective,
],
Instead of
import { BreadcrumbModule } from 'xng-breadcrumb'; @NgModule({ imports: [ BreadcrumbModule, ],
Use
import { BreadcrumbComponent, BreadcrumbItemDirective } from 'xng-breadcrumb'; @NgModule({ imports: [ BreadcrumbComponent, BreadcrumbItemDirective, ],
The provided solution from JakeAi worked for me
π Bug report
Description
Upgraded to version v11.0.0 of
xng-breadcrumb
and now get the following error:when I try to import the module. This is with Angular v17.3.4 and not using standalone components.
Angular Version: