Closed rudenate3 closed 6 years ago
I've been running into this same issue.
here the same issue
@rudenate3 I've just pushed new version of the package to NPM - update and let me know if it works properly. Thanks!
@Moff Awesome, that did fix the import for the main module inapp.module.ts
but import { FlashMessagesService } from 'angular2-flash-messages'
is still throwing the error 'Module <my-project>/node_modules/angular2-flash-messages/module/module' has no exported member 'FlashMessagesService'
@rudenate3 update the package one more time please
@moff That got it! Thank you!
@rudenate3 thank you for your feedback!
Thank you for the great package and fast response :)
I have been running into an issue when I install angular2-flash-messages. Several devs had this issue so I took a look. When we follow the instructions on the readme, and run
ng serve
we get:Same in the IDEs. It seems like the exporting module may be missing or the readme may be out of date. I was able to get them going by importing from the files directly for now ie:
import { FlashMessagesModule } from 'angular2-flash-messages/module/module.js';
andimport { FlashMessagesService } from 'angular2-flash-messages/module/flash-messages.service.js';
Lucky for us, these are just projects for personal use so this implementation is fine, but I just wanted to give you folks a heads up that there may be an issue somewhere.
Dependencies if helpful, rest of package.json is just standard ng cli output: