Git Product home page Git Product logo

Comments (5)

sconix avatar sconix commented on August 19, 2024

Latest version already works with AOT and angular 2.4. We also use angular-cli v24 in our project and this libs works without problems.

from ngx-perfect-scrollbar.

stephane-dereppe avatar stephane-dereppe commented on August 19, 2024

Here is the version of the perfectscrollbar that I use :
cat node_modules/perfect-scrollbar/package.json =>
version": "0.6.15"

Here is my package.json dep part

"dependencies": {
  "@angular/common": "2.4.1",
  "@angular/compiler": "2.4.1",
  "@angular/core": "2.4.1",
  "@angular/forms": "2.4.1",
  "@angular/http": "2.4.1",
  "@angular/platform-browser": "2.4.1",
  "@angular/platform-browser-dynamic": "2.4.1",
  "@angular/router": "3.4.1",
  "core-js": "^2.4.1",
  "rxjs": "5.0.1",
  "ts-helpers": "^1.1.1",
  "zone.js": "^0.7.2",
  "@angular2-material/progress-bar": "2.0.0-alpha.8-2",
  "angular2-perfect-scrollbar": "^1.1.0",
  "bootstrap": "3.3.7",
  "jquery": "3.1.1",
  "ng2-toasty": "2.2.2",
  "ng2-translate": "5.0.0",
  "ts-smart-logger": "0.0.4"
},

from ngx-perfect-scrollbar.

stephane-dereppe avatar stephane-dereppe commented on August 19, 2024

Here is how I load the module :

const PERFECT_SCROLLBAR_CONFIG: PerfectScrollbarConfigInterface = {
  suppressScrollX: true
};

@NgModule({
    declarations: [AppComponent],
    imports: [
        BrowserModule,
        FormsModule,
        HttpModule,
        ...
        PerfectScrollbarModule.forRoot(PERFECT_SCROLLBAR_CONFIG)
    ],

from ngx-perfect-scrollbar.

sconix avatar sconix commented on August 19, 2024

Latest version is 2.0.2 and you are usimg 1.x. AOT compatibility was added on 2.0.

from ngx-perfect-scrollbar.

stephane-dereppe avatar stephane-dereppe commented on August 19, 2024

Thanks a lot for the quick response. It did the trick !

My error was because I didn't see any release on the githup repo...

from ngx-perfect-scrollbar.

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.