brtnshrdr / angular2-image-zoom

An Angular2 Image Zoom Directive
MIT License
22 stars 15 forks source link

Unexpected value 'ImageZoomModule' imported by the module 'AppModule'. Please add a @NgModule annotation #25

Closed Brubning closed 6 years ago

Brubning commented 6 years ago

I'm having an issue in Angular v4. I've installed the module with NPM, imported in my app module and added to my @NgModule imports section. On build, when the application is requested by the browser, I get an error in the console "Unexpected value 'ImageZoomModule' imported by the module 'AppModule'. Please add a @NgModule annotation"

Am I missing a dependency somewhere, or is this incompatible with v4? Any ideas what I should try?

Thanks

Brubning commented 6 years ago

Finally look like I have resolved this and it was a simple typo in the package.json file. The dependency wasn't correctly specified. Thanks.