ng2-fan-menu icon indicating copy to clipboard operation
ng2-fan-menu copied to clipboard

Please add a @NgModule annotation.

Open himanshuchawla009 opened this issue 7 years ago • 9 comments

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.

himanshuchawla009 avatar Jun 14 '17 19:06 himanshuchawla009

I ran into the same error with Angular 5.

robinmaple avatar Jan 08 '18 18:01 robinmaple

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

marunp avatar Feb 19 '18 19:02 marunp

Any news here people?

worthy7 avatar Apr 19 '18 04:04 worthy7

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

But I still need the @NgModule annotation fix :(

matrumz avatar Jun 10 '18 23:06 matrumz

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

darknightCoder avatar Jul 03 '18 09:07 darknightCoder

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

ghost avatar Aug 06 '18 11:08 ghost

Got Similar Problem in Angular6

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

husainsr avatar Sep 11 '18 06:09 husainsr

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.

johnwnixon avatar Feb 06 '19 12:02 johnwnixon

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

npm install fan-menu

dragosch avatar Oct 21 '19 15:10 dragosch