abacritt / angularx-social-login

Social login and authentication module for Angular 17
633 stars 387 forks source link

4.0.0 version bug #428

Closed blueiceprj closed 3 years ago

blueiceprj commented 3 years ago

After update to new version I get this error on compile. Angular 11.X

Error: node_modules/angularx-social-login/socialauth.service.d.ts:59:21 - error TS2694: Namespace '"...../node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.

59 static ɵfac: i0.ɵɵFactoryDeclaration<SocialAuthService, never>;


Error: node_modules/angularx-social-login/socialauth.service.d.ts:60:22 - error TS2694: Namespace '"...../node_modules/@angular/core/core"' has no exported member 'ɵɵInjectableDeclaration'.

60     static ɵprov: i0.ɵɵInjectableDeclaration<SocialAuthService>;

Error: node_modules/angularx-social-login/sociallogin.module.d.ts:11:21 - error TS2694: Namespace '"......../node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.

11 static ɵfac: i0.ɵɵFactoryDeclaration<SocialLoginModule, [{ optional: true; skipSelf: true; }]>;


Error: node_modules/angularx-social-login/sociallogin.module.d.ts:12:21 - error TS2694: Namespace '"...../node_modules/@angular/core/core"' has no exported member 'ɵɵNgModuleDeclaration'.

12     static ɵmod: i0.ɵɵNgModuleDeclaration<SocialLoginModule, never, [typeof i1.CommonModule], never>;

Error: node_modules/angularx-social-login/sociallogin.module.d.ts:13:21 - error TS2694: Namespace '"......../node_modules/@angular/core/core"' has no exported member 'ɵɵInjectorDeclaration'.

13 static ɵinj: i0.ɵɵInjectorDeclaration;



Error: ./node_modules/angularx-social-login/fesm2015/angularx-social-login.js 327:183-201
"export 'ɵɵFactoryTarget' (imported as 'i0') was not found in '@angular/core'

Error: ./node_modules/angularx-social-login/fesm2015/angularx-social-login.js 358:207-225
"export 'ɵɵFactoryTarget' (imported as 'i0') was not found in '@angular/core'

Error: ./node_modules/angularx-social-login/fesm2015/angularx-social-login.js 329:0-27
"export 'ɵɵngDeclareClassMetadata' (imported as 'i0') was not found in '@angular/core'

Error: ./node_modules/angularx-social-login/fesm2015/angularx-social-login.js 365:0-27
"export 'ɵɵngDeclareClassMetadata' (imported as 'i0') was not found in '@angular/core'

Error: ./node_modules/angularx-social-login/fesm2015/angularx-social-login.js 327:25-46
"export 'ɵɵngDeclareFactory' (imported as 'i0') was not found in '@angular/core'

Error: ./node_modules/angularx-social-login/fesm2015/angularx-social-login.js 358:25-46
"export 'ɵɵngDeclareFactory' (imported as 'i0') was not found in '@angular/core'

Error: ./node_modules/angularx-social-login/fesm2015/angularx-social-login.js 328:26-50
"export 'ɵɵngDeclareInjectable' (imported as 'i0') was not found in '@angular/core'

Error: ./node_modules/angularx-social-login/fesm2015/angularx-social-login.js 360:25-47
"export 'ɵɵngDeclareInjector' (imported as 'i0') was not found in '@angular/core'

Error: ./node_modules/angularx-social-login/fesm2015/angularx-social-login.js 359:25-47
"export 'ɵɵngDeclareNgModule' (imported as 'i0') was not found in '@angular/core'
jaibatrik commented 3 years ago

Hey, could you please use the last stable version before 4 (I think 3.5.7)?

blueiceprj commented 3 years ago

I have changed to old version 3.5.7 for now.

jaibatrik commented 3 years ago

Updated the peer dependency list and readme files. Closing this now.

xptodevx commented 2 years ago

holy crap this is happening to me now.

guliv3r commented 2 years ago

hello any updates?

TristanGrayCC commented 2 years ago

Same happened here as well

jaibatrik commented 2 years ago

The solution is to use version 3.5.7 with Angular 11.

pablooliveira01 commented 2 years ago

The solution is to use version 3.5.7 with Angular 11.

thx u

timothyuijiatalor commented 2 years ago

After downgrading to version 3.5.7 I'm still having this error

Error: node_modules/angularx-social-login/sociallogin.module.d.ts:13:21 - error TS2694: Namespace '"C:/Users/Great Timo/Projects/RCCG/customers/node_modules/@angular/core/core"' has no exported member 'ɵɵInjectorDeclaration'.

static ɵinj: i0.ɵɵInjectorDeclaration;

Here is my package.json file

{ "name": "@coreui/coreui-free-angular-admin-template", "version": "2.11.2", "description": "CoreUI Free Angular 11 Admin Template", "author": { "name": "Łukasz Holeczek", "url": "http://holeczek.pl", "github": "https://github.com/mrholek", "twitter": "https://twitter.com/lukaszholeczek" }, "contributors": [ { "name": "Andrzej Kopański", "url": "https://github.com/xidedix" } ], "homepage": "#/angular", "copyright": "Copyright 2021 creativeLabs Łukasz Holeczek", "license": "MIT", "scripts": { "ng": "ng", "postinstall": "ngcc --properties es2015 browser module main --first-only", "start": "ng serve", "build": "ng build --prod --aot --build-optimizer --common-chunk --vendor-chunk --optimization --progress", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "private": true, "dependencies": { "@angular/animations": "^11.2.5", "@angular/cdk": "^11.2.4", "@angular/common": "^11.2.5", "@angular/compiler": "^11.2.10", "@angular/core": "^11.2.5", "@angular/forms": "^11.2.5", "@angular/localize": "^11.2.5", "@angular/platform-browser": "^11.2.5", "@angular/platform-browser-dynamic": "^11.2.5", "@angular/router": "^11.2.5", "@auth0/angular-jwt": "^5.0.2", "@ckeditor/ckeditor5-angular": "^2.0.1", "@ckeditor/ckeditor5-build-classic": "^27.1.0", "@coreui/angular": "^2.11.2", "@coreui/coreui": "^2.1.16", "@coreui/coreui-plugin-chartjs-custom-tooltips": "^1.3.1", "@coreui/icons": "^2.0.0-rc.0", "@coreui/icons-angular": "1.0.0-alpha.3", "@types/gapi": "^0.0.41", "@types/gapi.auth2": "^0.0.55", "angularx-social-login": "^3.5.7", "bootstrap": "^4.6.0", "chart.js": "^2.9.4", "classlist.js": "^1.1.20150312", "core-js": "^3.9.1", "flag-icon-css": "^3.5.0", "font-awesome": "^4.7.0", "ng2-charts": "^2.4.2", "ngx-bootstrap": "^6.2.0", "ngx-pagination": "^5.1.1", "ngx-perfect-scrollbar": "^10.1.0", "ngx-toastr": "^14.0.0", "rxjs": "^6.6.6", "simple-line-icons": "^2.5.5", "ts-helpers": "^1.1.2", "tslib": "^2.0.0", "web-animations-js": "^2.3.2", "zone.js": "~0.10.3" }, "devDependencies": { "@angular-devkit/build-angular": "^0.1102.9", "@angular/cli": "^11.2.4", "@angular/compiler-cli": "^11.2.5", "@angular/language-service": "^11.2.5", "@types/jasmine": "^3.6.6", "@types/jasminewd2": "^2.0.8", "@types/node": "^14.14.33", "codelyzer": "^6.0.0", "jasmine-core": "~3.6.0", "jasmine-spec-reporter": "~5.0.0", "karma": "~5.2.0", "karma-chrome-launcher": "~3.1.0", "karma-coverage": "~2.0.3", "karma-jasmine": "~4.0.0", "karma-jasmine-html-reporter": "^1.5.0", "protractor": "~7.0.0", "ts-node": "^8.10.2", "tslint": "~6.1.0", "typescript": "~4.1.5" }, "engines": { "node": ">= 10.13", "npm": ">= 6" } }

tecnomage commented 2 years ago

i changed to version 3.5.7 and the error was fixed.