dolanmiu / ng-color

Simple Angular color picker components which follow Angular best practices. No Frills.
https://stackblitz.com/edit/ng-color-demo
12 stars 6 forks source link

Problem with NPM link and Angular 4 #10

Closed Amunds closed 7 years ago

Amunds commented 7 years ago

I get the following error message when I try to run the module in Angular 4 using NPM link: Unexpected value 'NgColorModule' imported by the module 'AppModule'. Please add a @NgModule annotation.

Steps to reproduce: Create a new Angular 4 application. Git clone the ng-color repo Run gulp watch in the ng-color repo cd ./dist and npm link Go to Angular 4 application and run npm link ng-color

dolanmiu commented 7 years ago

This is odd, I am experiencing this as well

dolanmiu commented 7 years ago

I have made a fix on 3.0.8

Tested this on my machine and it works

Re-open if you are still experiencing