fabiandev / css-animator

Animate elements using CSS classes with support for Angular.

Home Page:https://fabiandev.github.io/css-animator/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot find module "css-animator"

lenanex opened this issue · comments

commented

Hello,

I followed the installation process and I get this error message when I want to import the module to my Ionic application. Is it a normal behaviour ?

import { BrowserModule } from '@angular/platform-browser';
import { ErrorHandler, NgModule } from '@angular/core';
import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
import { AnimatorModule } from 'css-animator';
import { SplashScreen } from '@ionic-native/splash-screen';
import { StatusBar } from '@ionic-native/status-bar';



import { MyApp } from './app.component';
import { SigninPage } from '../pages/signin/signin';

@NgModule({
  declarations: [
    MyApp,
    SigninPage
  ],
  imports: [
    AnimatorModule,
    BrowserModule,
    IonicModule.forRoot(MyApp)
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    SigninPage
  ],
  providers: [
    StatusBar,
    SplashScreen,
    {provide: ErrorHandler, useClass: IonicErrorHandler}
  ]
})
export class AppModule {}

Thanks,
Alex

v2.2.0 of css-animator wasn't published correctly to npm. Can you please try to update the package, i.e., install v2.2.1 and tell me if this fixes the issue for you?

commented

Thanks so much, it's working fine now!