Closed adamfoerster closed 5 years ago
Related to #1435 #1732 #1284
Problem persist. using "aws-amplify": "^1.1.29-unstable.1",
ERROR in node_modules/@aws-amplify/api/node_modules/@types/zen-observable/index.d.ts(32,14): error TS2300: Duplicate identifier 'Subscriber'. node_modules/@types/zen-observable/index.d.ts(33,14): error TS2300: Duplicate identifier 'Subscriber'.
the error disappear after uninstalling apollo !
We installed the latest aws-amplify version but still we are facing the same issue.
package.json
{
"name": "test",
"version": "0.1.9",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "BUILD_ENV=${BUILD_ENV} ionic-app-scripts build",
"lint": "ionic-app-scripts lint",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve",
"compodoc": "./node_modules/.bin/compodoc -p src/tsconfig.app.json -w -s",
"test": "karma start ./test-config/karma.conf.js",
"test-ci": "karma start ./test-config/karma.conf.js --single-run",
"test-coverage": "karma start ./test-config/karma.conf.js --coverage",
"e2e": "npm run e2e-update && npm run e2e-test",
"e2e-test": "protractor ./test-config/protractor.conf.js",
"e2e-update": "webdriver-manager update --standalone false --gecko false"
},
"config": {
"ionic_generate_source_map": "true"
},
"dependencies": {
"@angular/animations": "5.2.11",
"@angular/cdk": "^5.2.5",
"@angular/common": "5.2.11",
"@angular/compiler": "5.2.11",
"@angular/compiler-cli": "5.2.11",
"@angular/core": "5.2.11",
"@angular/forms": "5.2.11",
"@angular/http": "5.2.11",
"@angular/material": "^7.3.5",
"@angular/platform-browser": "5.2.11",
"@angular/platform-browser-dynamic": "5.2.11",
"@ionic-native/app-center-analytics": "^4.18.0",
"@ionic-native/app-center-crashes": "^4.18.0",
"@ionic-native/app-version": "^4.17.0",
"@ionic-native/barcode-scanner": "^4.20.0",
"@ionic-native/camera": "^4.17.0",
"@ionic-native/code-push": "^4.20.0",
"@ionic-native/core": "~4.15.0",
"@ionic-native/device": "4.7.0",
"@ionic-native/dialogs": "^4.17.0",
"@ionic-native/file": "^4.20.0",
"@ionic-native/image-picker": "^4.17.0",
"@ionic-native/social-sharing": "^4.17.0",
"@ionic-native/speech-recognition": "^4.17.0",
"@ionic-native/splash-screen": "~4.15.0",
"@ionic-native/status-bar": "~4.15.0",
"@ionic/pro": "2.0.3",
"@ionic/storage": "2.2.0",
"apollo-client": "^2.6.2",
"aws-amplify": "^1.2.4",
"aws-amplify-angular": "^3.0.3",
"aws-appsync": "^1.8.0",
"cordova-android": "7.1.4",
"cordova-android-play-services-gradle-release": "^2.0.0",
"cordova-android-support-gradle-release": "^2.0.1",
"cordova-browser": "5.0.4",
"cordova-ios": "4.5.4",
"cordova-plugin-app-version": "^0.1.9",
"cordova-plugin-camera": "^4.0.3",
"cordova-plugin-compat": "^1.2.0",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-dialogs": "^2.0.1",
"cordova-plugin-file": "^6.0.1",
"cordova-plugin-file-transfer": "^1.7.1",
"cordova-plugin-ionic": "^5.3.0",
"cordova-plugin-ionic-keyboard": "^2.1.3",
"cordova-plugin-ionic-webview": "^2.2.5",
"cordova-plugin-speechrecognition": "^1.2.0",
"cordova-plugin-splashscreen": "^5.0.2",
"cordova-plugin-statusbar": "^2.4.2",
"cordova-plugin-telerik-imagepicker": "^2.2.2",
"cordova-plugin-whitelist": "^1.3.3",
"cordova-plugin-x-socialsharing": "^5.4.3",
"cordova-plugin-zip": "^3.1.0",
"es6-promise-plugin": "^4.2.2",
"font-awesome": "^4.7.0",
"graphql-tag": "^2.10.1",
"ionic-angular": "3.9.2",
"ionic-long-press": "^1.5.0",
"ionicons": "3.0.0",
"ng2-translate": "^5.0.0",
"phonegap-plugin-barcodescanner": "^8.0.1",
"primeng": "^5.2.7",
"rxjs": "5.5.11",
"sentry-cordova": "^0.15.0",
"sw-toolbox": "3.6.0",
"zone.js": "0.8.26"
},
"devDependencies": {
"@compodoc/compodoc": "^1.1.8",
"@ionic/app-scripts": "3.2.2",
"@types/jasmine": "^2.8.12",
"@types/node": "^10.12.10",
"angular2-template-loader": "^0.6.2",
"html-loader": "^0.5.5",
"istanbul-instrumenter-loader": "^3.0.1",
"jasmine": "^2.99.0",
"jasmine-spec-reporter": "^4.2.1",
"karma": "^3.1.1",
"karma-chrome-launcher": "^2.2.0",
"karma-coverage-istanbul-reporter": "^2.0.4",
"karma-jasmine": "^2.0.1",
"karma-jasmine-html-reporter": "^1.4.0",
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "^3.0.5",
"null-loader": "^0.1.1",
"protractor": "^5.4.1",
"ts-loader": "^3.5.0",
"ts-node": "^7.0.1",
"typescript": "3.3.3333",
"webpack": "^3.12.0"
},
"description": "An Ionic project",
"cordova": {
"plugins": {
"cordova-plugin-statusbar": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-ionic-webview": {
"ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+"
},
"cordova-plugin-ionic-keyboard": {},
"cordova-plugin-speechrecognition": {},
"cordova-plugin-dialogs": {},
"cordova-plugin-camera": {},
"cordova-plugin-file": {},
"cordova-plugin-file-transfer": {},
"cordova-plugin-zip": {},
"cordova-plugin-app-version": {},
"cordova-plugin-telerik-imagepicker": {
"PHOTO_LIBRARY_USAGE_DESCRIPTION": "Allow to access your gallery"
},
"cordova-plugin-x-socialsharing": {
"ANDROID_SUPPORT_V4_VERSION": "24.1.1+"
},
"cordova-plugin-appcenter-analytics": {},
"cordova-plugin-appcenter-crashes": {},
"cordova-android-play-services-gradle-release": {
"PLAY_SERVICES_VERSION": "15.+"
},
"cordova-android-support-gradle-release": {
"ANDROID_SUPPORT_VERSION": "27.+"
},
"cordova-plugin-code-push": {},
"phonegap-plugin-barcodescanner": {
"ANDROID_SUPPORT_V4_VERSION": "27.+"
},
"cordova-plugin-whitelist": {},
"sentry-cordova": {}
},
"platforms": [
"ios",
"android"
]
}
}
Hi, Anybody can help us on this blocker.
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.
Looking for a help forum? We recommend joining the Amplify Community Discord server *-help
channels or Discussions for those types of questions.
I'm trying to use AWS Amplify with an Angular APP but I get an error with the Subscriber type in zen-observable that prevents me from building it.
ERROR in node_modules/@types/zen-observable/index.d.ts(33,14): error TS2300: Duplicate identifier 'Subscriber'. node_modules/@aws-amplify/api/node_modules/@types/zen-observable/index.d.ts(32,14): error TS2300: Duplicate identifier 'Subscriber'.
If I go to either one of the files in the node_modules folder and comment the Subscriber type line the code the build starts working again until it crashes a couple minutes later.
This is my package.json:
{ "name": "udm-nebular", "version": "0.0.0", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e", "graphql": "npm run graphql:introspect && npm run graphql:generate", "graphql:generate": "CODEGEN_RESOLVERS=false gql-gen --schema schema.json --template graphql-codegen-apollo-angular-template --out src/app/generated/graphql.ts", "graphql:introspect": "gql-gen --schema src/schema.graphql --template graphql-codegen-introspection-template --out schema.json", "generate": "graphql-codegen --config codegen.yml", "gql": "graphql-codegen --config codegen.yml" }, "private": true, "dependencies": { "@angular/animations": "~7.2.14", "@angular/cdk": "~7.3.7", "@angular/common": "~7.2.14", "@angular/compiler": "~7.2.14", "@angular/core": "~7.2.14", "@angular/forms": "~7.2.14", "@angular/http": "~7.2.14", "@angular/platform-browser": "~7.2.14", "@angular/platform-browser-dynamic": "~7.2.14", "@angular/pwa": "^0.13.9", "@angular/router": "~7.2.14", "@angular/service-worker": "~7.2.14", "@herodevs/lazy-af": "0.0.8", "@nebular/auth": "^4.0.0-beta.0", "@nebular/eva-icons": "4.0.0-beta.0", "@nebular/theme": "^4.0.0-beta.0", "animate.css": "^3.7.0", "apollo-angular": "^1.5.0", "apollo-angular-link-http": "^1.6.0", "apollo-cache-inmemory": "^1.5.1", "apollo-client": "^2.5.1", "apollo-link-error": "^1.1.10", "aws-amplify": "^1.1.27", "aws-amplify-angular": "^3.0.2", "core-js": "^3.0.1", "dayjs": "^1.8.14", "eslint": "^5.16.0", "eslint-config-airbnb-base": "^13.1.0", "eslint-config-prettier": "^4.2.0", "eslint-plugin-import": "^2.17.2", "eslint-plugin-prettier": "^3.0.1", "eva-icons": "^1.1.1", "graphql": "^14.3.0", "graphql-tag": "^2.10.1", "ng2-completer": "^2.0.8", "ng2-smart-table": "^1.4.0", "ngx-auto-unsubscribe": "^3.0.0", "prettier": "^1.17.0", "rxjs": "~6.5.1", "rxjs-compat": "^6.5.1", "tslint-config-prettier": "^1.18.0", "zone.js": "~0.9.1" }, "devDependencies": { "@angular-devkit/build-angular": "~0.13.9", "@angular/cli": "~7.3.9", "@angular/compiler-cli": "~7.2.14", "@angular/language-service": "~7.2.14", "@graphql-codegen/fragment-matcher": "1.1.3", "@graphql-codegen/introspection": "^1.1.3", "@graphql-codegen/typescript": "1.1.3", "@graphql-codegen/typescript-apollo-angular": "1.1.3", "@graphql-codegen/typescript-graphql-files-modules": "1.1.3", "@graphql-codegen/typescript-operations": "1.1.3", "@schematics/angular": "~7.3.9", "@types/jasmine": "~3.3.12", "@types/jasminewd2": "~2.0.6", "@types/node": "^11.13.10", "apollo-codegen": "^0.20.2", "codelyzer": "~5.0.1", "graphql-codegen-introspection": "^0.18.1", "graphql-codegen-typescript-apollo-angular": "^0.18.1", "jasmine-core": "~3.4.0", "jasmine-spec-reporter": "~4.2.1", "karma": "~4.1.0", "karma-chrome-launcher": "~2.2.0", "karma-coverage-istanbul-reporter": "~2.0.5", "karma-jasmine": "~2.0.1", "karma-jasmine-html-reporter": "^1.4.2", "protractor": "~5.4.2", "ts-node": "~8.1.0", "tslint": "^5.16.0", "typescript": "^3.2.4" } }