DanielYKPan / ng2-fan-menu

Angular Fan Menu
https://danielykpan.github.io/ng2-fan-menu
MIT License
73 stars 38 forks source link

Please add a @NgModule annotation. #2

Open himanshuchawla009 opened 7 years ago

himanshuchawla009 commented 7 years ago

when i import this library in to my app module .it shows the following error in console. imported by the module 'AppModule'. Please add a @NgModule annotation.

robinmaple commented 6 years ago

I ran into the same error with Angular 5.

marunp commented 6 years ago

Does this component work with ng5 ? how can i fix it ?

worthy7 commented 6 years ago

Any news here people?

matrumz commented 6 years ago

Using Angular 6: Resolved some rxjs issues by installing rxjs-compat

But I still need the @NgModule annotation fix :(

darknightCoder commented 6 years ago

fixed it by adding the following tsconfig.json "paths": { "@angular/": ["node_modules/@angular/"] }

ghost commented 6 years ago

does anyone solved this issue? Using Angular 5 looking to upgrade to 6

husainsr commented 6 years ago

Got Similar Problem in Angular6

Unexpected value 'FanMenuModule' imported by the module 'AppModule'. Please add a @NgModule annotation.

johnwnixon commented 5 years ago

I deleted the @angular folder that was found inside the ng2-fan-menu and that seemed to get rid of the @NgModule annotation error.

I also added the line to the tsconfig.json that @darknightCoder suggested - "paths": { "@angular/": ["node_modules/@angular/"] }

I have further testing to do, but it appears these changes made it work with Angular 6.

dragosch commented 5 years ago

migration to Angular 8 https://github.com/dragosch/fan-menu

npm install fan-menu