lbertenasco / ap-ng2-fullcalendar

Angular2 fullcalendar component
MIT License
35 stars 18 forks source link

Error when compiling with AOT enabled #7

Closed BoyeMagnus closed 7 years ago

BoyeMagnus commented 7 years ago

I am getting the following error when compiling with AOT enabled:

ERROR in 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 Injectable in /Users/Magnus/ng-workshop/XXXX/node_modules/ap-angular2-fullcalendar/node_modules/@angular/core/core.d.ts, resolving symbol ɵf in /Users/Magnus/ng-workshop/XXXX/node_modules/ap-angular2-fullcalendar/node_modules/@angular/core/core.d.ts, resolving symbol ɵf in /Users/Magnus/ng-workshop/XXXX/node_modules/ap-angular2-fullcalendar/node_modules/@angular/core/core.d.ts

ERROR in ./src/main.ts Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in '/Users/Magnus/ng-workshop/XXXX/src' @ ./src/main.ts 4:0-74 @ multi ./src/main.ts

The error is not showing up when AOT is disabled

lbertenasco commented 7 years ago

Hi @BoyeMagnus What version of angular-cli & angular are you using? ng -v or cat package.json | grep @angular

lbertenasco commented 7 years ago

Please try "ap-angular2-fullcalendar": "1.2.2"

It should fix the AoT issue :smiley: