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

322
Views
'ngx-slider' is not a known element

Full error shows up in the app.component.html file where I try to use the component as follows:

<ngx-slider [(value)]="value" [options]="options"></ngx-slider>

The full error is:

enter image description here

But I've done exactly what the guide says, and it's still not working:

I installed the library through the command line command: npm install --save @angular-slider/ngx-slider and it shows up in the package.json as:

enter image description here

I imported it in app.module.ts:

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { NgxSliderModule } from '@angular-slider/ngx-slider';
import { AppComponent } from './app.component';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    NgxSliderModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

I've imported it into app.component.ts:

import { Component } from '@angular/core';
import { Options } from '@angular-slider/ngx-slider';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent {
  value: number = 100;
  options: Options = {
    floor: 0,
    ceil: 200
  };
}

And finally added it to app.component.html:

<ngx-slider [(value)]="value" [options]="options"></ngx-slider>

So why is it not working?

Versions for reference:

  • Node version: 14.17.1
  • NPM version: 6.14.13
  • Angular & Angular CLI version: 13
about 4 years ago · Juan Pablo Isaza
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!