Code Monkey home page Code Monkey logo

Comments (10)

github-actions avatar github-actions commented on July 26, 2024 4

πŸ‘‹ 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.

from xng-breadcrumb.

charmbv avatar charmbv commented on July 26, 2024 2

@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.

from xng-breadcrumb.

charmbv avatar charmbv commented on July 26, 2024 2

This is not a proper solution to the issue. I've been using overrides but will be looking for another solution.

from xng-breadcrumb.

klekovkinda avatar klekovkinda commented on July 26, 2024 1

After migrating to Angular 17, I've encountered the same issue. This library is now requiring unexpected refactoring.

from xng-breadcrumb.

JakeAi avatar JakeAi commented on July 26, 2024 1

Instead of

import { BreadcrumbModule } from 'xng-breadcrumb';
@NgModule({
  imports: [
    BreadcrumbModule,
  ],

Use

import { BreadcrumbComponent, BreadcrumbItemDirective } from 'xng-breadcrumb';
@NgModule({
  imports: [
    BreadcrumbComponent, BreadcrumbItemDirective,
  ],

from xng-breadcrumb.

udayvunnam avatar udayvunnam commented on July 26, 2024

@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 {}

from xng-breadcrumb.

TomislavMedved avatar TomislavMedved commented on July 26, 2024

Any update on this?

from xng-breadcrumb.

Aman-Ansari-03 avatar Aman-Ansari-03 commented on July 26, 2024

@charmbv @TomislavMedved @charmbv Try using the lower version npm install [email protected] their might be some dependency errors but if you Confidentially find everything correct then run this command npm install [email protected] --legacy-peer-deps.

from xng-breadcrumb.

diep1989 avatar diep1989 commented on July 26, 2024

Any update?

from xng-breadcrumb.

bahnhub avatar bahnhub commented on July 26, 2024

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

from xng-breadcrumb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.