Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.0.2 Runtime error with @types/zen-observale: error TS2300: Duplicate identifier 'Subscriber'. #1284

Closed
XCarle opened this issue Jul 20, 2018 · 11 comments
Assignees
Labels
bug Something isn't working investigating This issue is being investigated pending-close-response-required A response is required for this issue to remain open, it will be closed within the next 7 days. PubSub Related to PubSub category

Comments

@XCarle
Copy link

XCarle commented Jul 20, 2018

Problem with npm dependencies.

I tried some npm dedupe which did not fix the problem.

I think the Subscriber is defined in rxjs.

@rayhaanq
Copy link

I've got the same issue

@rayhaanq
Copy link

Downgrading to 1.0.1 seemed to fix this issue for me. npm i -S aws-amplify@1.0.1

@manueliglesias manueliglesias added the investigating This issue is being investigated label Jul 27, 2018
@manueliglesias manueliglesias self-assigned this Jul 27, 2018
@elorzafe elorzafe added the PubSub Related to PubSub category label Jul 31, 2018
@ajhool
Copy link

ajhool commented Sep 2, 2018

Unable to run a server created with create-react-app due to this bug. This bug was also seen in ApolloGraphQL:

apollographql/apollo-link#623

and there is an effort by @types/zen-observable to resolve it from within the zen-observable types library:

DefinitelyTyped/DefinitelyTyped#26239 (comment)

@SudduK
Copy link

SudduK commented Oct 30, 2018

Thanks @XCarle. I ran into similar issues like below
_
node_modules@aws-amplify\api\node_modules@types\zen-observable\index.d.ts (32,14): error TS2300: Duplicate identifier 'Subscriber'.
node_modules@aws-amplify\pubsub\node_modules@types\zen-observable\index.d.ts (32,14): error TS2300: Duplicate identifier 'Subscriber'._

I tried npm dedupe that worked for me.
Before running npm dedupe, ran the npm find-dupes and found the below changes are being made

remove @types/zen-observable 0.5.4 node_modules@aws-amplify\pubsub\node_modules@types\zen-observable
move @types/zen-observable 0.5.4 node_modules@types\zen-observable node_modules@aws-amplify\api\node_modules@types\zen-observable

@elorzafe elorzafe added investigating This issue is being investigated and removed investigating This issue is being investigated labels Mar 1, 2019
@jordanranz
Copy link
Contributor

@XCarle,

Are you still experiencing this issue?

@jordanranz jordanranz added the pending-close-response-required A response is required for this issue to remain open, it will be closed within the next 7 days. label Mar 13, 2019
@milesbeyond
Copy link

milesbeyond commented Mar 25, 2019

@jordanranz I am. I've tried npm dedupe but to no avail. Any other ideas?

I had the issue at v1.1.19, and just updated to v1.1.22, but that did not include a fix.

@amaingot
Copy link

Is anything happening with this issue? Looks like it is still happening for me too. I'm on v1.1.23.

@elorzafe elorzafe removed the pending-close-response-required A response is required for this issue to remain open, it will be closed within the next 7 days. label Apr 3, 2019
@elorzafe elorzafe added this to Bugs in Amplify JS Bug Bash 3 via automation Apr 3, 2019
@elorzafe elorzafe added the bug Something isn't working label Apr 5, 2019
@elorzafe elorzafe removed this from Bugs in Amplify JS Bug Bash 3 Apr 5, 2019
@elorzafe
Copy link
Contributor

elorzafe commented Apr 5, 2019

@cheeks @amaingot can you paste your package.json to try to reproduce the problem.

@elorzafe elorzafe added the pending-close-response-required A response is required for this issue to remain open, it will be closed within the next 7 days. label Apr 5, 2019
@alebiavati
Copy link
Contributor

Closing issue as inactive, please open another issue with more details if you still need support.

@adamfoerster
Copy link

I'm getting this error too. I'm trying to use amplify with my Angular app. This is my package.json

{
"name": "udm",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"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"
}
}

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working investigating This issue is being investigated pending-close-response-required A response is required for this issue to remain open, it will be closed within the next 7 days. PubSub Related to PubSub category
Projects
None yet
Development

No branches or pull requests