Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

597
Views
Importing @ng-select/ng-select in Storybook/angular

I'm trying to use @ng-select/ng-select in the storybook but it fails (MatIconModule works as expected).

import { NgSelectModule } from '@ng-select/ng-select';
import { MatIconModule } from '@angular/material/icon';

export default {
   title: 'shared/rating-stars',
   component: RatingStarsComponent,
   imports: [NgSelectModule, MatIconModule]
} as Meta;

The error message is standard: "core.js:14937 'ng-select' is not a known element: ..." so it looks like that NgSelectModule does not define components properly. So I wanted to take a look at the module but I found out that node_modules/@ng-select/ng-select/lib/ng-select.module.d.ts almost empty (reinstallation of package do not help and I can reproduce it on both win/linux):

export declare class NgSelectModule {
}

Application itself is working correctly, any idea what could be wrong? Thanks a lot.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

You may not require to import NgSelectModule in your component. Instead import it in your parent module.ts like this. Then you can use it in your html file.

import { NgSelectModule } from '@ng-select/ng-select';
@NgModule({
  imports: [
    .....
    NgSelectModule,
    .....
  ],
  declarations: []
})
export class MyModule { }
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!