Open Sonia-Nehdi opened 3 years ago
'flash-messages' is not a known element:
this error occurs when I try to use even after I installed,
npm install angular2-flash-messages
and imported it in app.module.ts,
import {FlashMessageModule} from 'angular2-flash-messages'
imported that in app.components.ts,
import { FlashMessagesService } from 'angular2-flash-messages/module/flash-messages.service';
I also installed, npm install @angular/common --save
and added FlashMessagesModule.forRoot() in the imports but the error keeps occurring!
PS: I'm using "@angular/cli": "~10.2.0", any help please !?
'flash-messages' is not a known element:
this error occurs when I try to use
even after I installed,
npm install angular2-flash-messages
and imported it in app.module.ts,
import {FlashMessageModule} from 'angular2-flash-messages'
imported that in app.components.ts,
import { FlashMessagesService } from 'angular2-flash-messages/module/flash-messages.service';
I also installed, npm install @angular/common --save
and added FlashMessagesModule.forRoot() in the imports but the error keeps occurring!
PS: I'm using "@angular/cli": "~10.2.0", any help please !?