nekken / ng2-fullcalendar

95 stars 47 forks source link

Error: Please add a @Pipe/@Directive/@Component annotation #40

Open sparrowonfire opened 7 years ago

sparrowonfire commented 7 years ago

Hi,

I just installed this component in my project and i have followed the installation instructions as specified on the main page.

I can compile my app without errors however when i try to access it in the browser i get this error

Uncaught Error: Unexpected value 'CalendarComponent' declared by the module 'AppModule'. Please add a @Pipe/@Directive/@Component annotation. at syntaxError (http://localhost:4200/vendor.bundle.js:120246:34) at http://localhost:4200/vendor.bundle.js:133248:40 at Array.forEach (native) at CompileMetadataResolver.getNgModuleMetadata (http://localhost:4200/vendor.bundle.js:133230:54) at JitCompiler._loadModules (http://localhost:4200/vendor.bundle.js:144336:66) at JitCompiler.compileModuleAndComponents (http://localhost:4200/vendor.bundle.js:144295:52) at JitCompiler.compileModuleAsync (http://localhost:4200/vendor.bundle.js:144257:23) at PlatformRef.bootstrapModuleWithZone (http://localhost:4200/vendor.bundle.js:5022:25) at PlatformRef.bootstrapModule (http://localhost:4200/vendor.bundle.js:5008:21) at Object.541 (http://localhost:4200/main.bundle.js:315:124)

Does anyone know what could be causing this?

Thanks in advance!

nikopolv commented 7 years ago

I get the same.

e: I use ng-cli with angular2

KrisBraun commented 7 years ago

I got the same error. I don't think this package is using the correct approach by including the component directly rather than importing a module, because it's pulling in a separate dependancy on a specific version of Angular. This package uses proper module imports and works for me: https://github.com/lbertenasco/ap-ng2-fullcalendar

Abhay2012 commented 7 years ago

I'm also getting the same error, did you get any solution??

cristiancpl commented 6 years ago

+1

abrahamsankutty commented 6 years ago

https://github.com/lbertenasco/ap-ng2-fullcalendar use this for angular cli

mganigapeta commented 6 years ago

I am also getting same error any solutions for this....?