Epotignano / ng2-social-share

Angular2 social share module, share urls and content on social networks such as facebook, google+, twitter, pinterest and so on -
20 stars 24 forks source link

Uncaught Error: Unexpected value 'AppComponent' declared by the module 'AppModule #14

Open harishmahajan opened 6 years ago

harishmahajan commented 6 years ago

when i add this line to component.

directives: [CeiboShare]

then i get this error

Uncaught Error: Unexpected value 'AppComponent' declared by the module 'AppModule'. Please add a @Pipe/@Directive/@Component annotation. at syntaxError (compiler.js:485) at eval (compiler.js:15252) at Array.forEach (<anonymous>) at CompileMetadataResolver.getNgModuleMetadata (compiler.js:15234) at JitCompiler._loadModules (compiler.js:34226) at JitCompiler._compileModuleAndComponents (compiler.js:34187) at JitCompiler.compileModuleAsync (compiler.js:34081) at CompilerImpl.compileModuleAsync (platform-browser-dynamic.js:230) at PlatformRef.bootstrapModule (core.js:5568) at eval (main.ts:11)

how can i solve it?

here is my package.json

{ "name": "share", "version": "0.0.0", "license": "MIT", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "private": true, "dependencies": { "@ angular/animations": "^5.0.0", "@ angular/cdk": "^5.0.1", "@ angular/common": "^5.0.0", "@ angular/compiler": "^5.0.0", "@ angular/core": "^5.0.0", "@ angular/forms": "^5.0.0", "@ angular/http": "^5.0.0", "@ angular/material": "^5.0.1", "@ angular/platform-browser": "^5.0.0", "@ angular/platform-browser-dynamic": "^5.0.0", "@ angular/router": "^5.0.0", "core-js": "^2.4.1", "font-awesome": "^4.7.0", "material-social-share": "^1.1.1", "ng2-social-share": "0.0.10", "ngx-sharebuttons": "^4.1.4", "rxjs": "^5.5.2", "social-share-ng2": "^0.3.1", "zone.js": "^0.8.14" }, "devDependencies": { "@ angular/cli": "1.5.5", "@ angular/compiler-cli": "^5.0.0", "@ angular/language-service": "^5.0.0", "@ types/jasmine": "~2.5.53", "@ types/jasminewd2": "~2.0.2", "@ types/node": "~6.0.60", "codelyzer": "^4.0.1", "jasmine-core": "~2.6.2", "jasmine-spec-reporter": "~4.1.0", "karma": "~1.7.0", "karma-chrome-launcher": "~2.1.1", "karma-cli": "~1.0.1", "karma-coverage-istanbul-reporter": "^1.2.1", "karma-jasmine": "~1.1.0", "karma-jasmine-html-reporter": "^0.2.2", "protractor": "~5.1.2", "ts-node": "~3.2.0", "tslint": "~5.7.0", "typescript": "~2.4.2" } }

dkaushikl commented 6 years ago

have you find any solution?

harishmahajan commented 6 years ago

no