kamilkisiela / angular-emojify

Angular Pipe that replaces all :emoji: with the actual emoji
MIT License
17 stars 4 forks source link

Compatibility with anglar CLI? #12

Open valentinbdv opened 7 years ago

valentinbdv commented 7 years ago

I get this error when I try to compile after following your instructions :

Error encountered resolving symbol values statically. Calling function 'makeDecorator', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol NgModule in C:/wamp64/www/WEBAPP/node_modules/angular2-emojify/node_modules/@angular/core/src/metadata/ng_module.d.ts, resolving symbol NgModule in C:/wamp64/www/WEBAPP/node_modules/angular2-emojify/node_modules/@angular/core/src/metadata.d.ts, resolving symbol NgModule in C:/wamp64/www/WEBAPP/node_modules/angular2-emojify/node_modules/@angular/core/src/core.d.ts, resolving symbol NgModule in C:/wamp64/www/WEBAPP/node_modules/angular2-emojify/node_modules/@angular/core/index.d.ts, resolving symbol EmojifyModule in C:/wamp64/www/WEBAPP/node_modules/angular2-emojify/build/src/index.d.ts, resolving symbol EmojifyModule in C:/wamp64/www/WEBAPP/node_modules/angular2-emojify/build/src/index.d.ts

Is it a problem with angular CLI or have I missed something?

AppOrchestra commented 6 years ago

I'm having the same issue getting it to compile with AOT. I tried adding a static forRoot() method in module but that didn't seem to help. The other strange thing is that it compiles ok on my dev computer, but fails in my continuous integration build.

AppOrchestra commented 6 years ago

The easiest workaround was to just add the node-emojify and @types/node-emojify dependancies then copy the pipe to my app's source

kamilkisiela commented 6 years ago

14 should fix that