Closed satishmolletipipra closed 4 years ago
Also getting this.
Edit: ran
> npm ls @types/zen-observable
client@0.1.0 /Users/pbirsinger/consulting/lanehoney/top-lanes-report/client
├── @types/zen-observable@0.8.0
└─┬ aws-amplify@1.2.4
├─┬ @aws-amplify/api@1.2.4
│ └── @types/zen-observable@0.5.4
└─┬ @aws-amplify/pubsub@1.2.4
└── @types/zen-observable@0.5.4
Then ran npm --save uninstall @types/zen-observable
to fix. Not sure how that got there
after running npm ls @types/zen-observable
I got
+-- @types/zen-observable@0.8.0
+-- aws-amplify@1.2.4
| +-- @aws-amplify/api@1.2.4
| | `-- @types/zen-observable@0.5.4
| `-- @aws-amplify/pubsub@1.2.4
| `-- @types/zen-observable@0.5.4
`-- aws-appsync@1.8.1
+-- apollo-client@2.4.6
| `-- @types/zen-observable@0.8.0 deduped
`-- apollo-link-retry@2.2.5
`-- @types/zen-observable@0.8.0 deduped
Uninstalling the root @types/zen-observable@0.8.0
doesn't fix this
I still receive
ERROR in node_modules/@aws-amplify/api/node_modules/@types/zen-observable/index.d.ts:32:14 - error TS2300: Duplicate identifier 'Subscriber'.
Hi, Could you please add some more details such as how you have configured the app and the steps to reproduce the issue?
@Ashish5591
I ran npm ls@types/observables
Then ran npm --save uninstall @types/zen-observable but still am getting the same error(duplicate identifier subscriber).
Steps reproduce. Create ionic app Copy and replace the package.json from my previous comment. Run ionic serve.
Then am getting the error.
Anyone have solution for the above issue? this is a blocker for me.
Having the same issue. Is this a recurrence of #1732 ?
There's a temporary fix outlined in https://github.com/aws-amplify/amplify-js/issues/1732#issuecomment-450761829
@Birdstown Thanks for the response.
We are already gone through the https://github.com/aws-amplify/amplify-js/issues/1732#issuecomment-450761829 comment and tried but while generating the APK, this is not working.
Can someone help me out with this problem.
Also having this issue. Has anyone come across a better solution than the temporary fix from https://github.com/aws-amplify/amplify-js/issues/1732#issuecomment-450761829?
Also having this issue ... help. Are other people not having this issue? If not, please say so .. that would at least let me (us?) know to keep banging our head.
OK, I continued to bang my head and eventually things worked... I'm really not sure what the final solution was. But, it is now working without the 'Duplicate identifier Subscriber' error. Here is my package.json:
{
"name": "si-install-app",
"version": "0.3.35",
"author": "Sensor Industries",
"homepage": "http://sensor-industries.com/",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/common": "^7.2.2",
"@angular/core": "^7.2.2",
"@angular/forms": "^7.2.2",
"@angular/http": "^7.2.2",
"@angular/platform-browser": "^7.2.2",
"@angular/platform-browser-dynamic": "^7.2.2",
"@angular/router": "^7.2.2",
"@ionic-native/barcode-scanner": "5.0.0-beta.14",
"@ionic-native/camera": "5.0.0-beta.14",
"@ionic-native/core": "5.0.0-beta.14",
"@ionic-native/file": "^5.2.0",
"@ionic-native/file-path": "^5.2.0",
"@ionic-native/file-transfer": "^5.2.0",
"@ionic-native/ionic-webview": "^5.2.0",
"@ionic-native/network": "^5.0.0-beta.14",
"@ionic-native/splash-screen": "5.0.0-beta.14",
"@ionic-native/status-bar": "5.0.0-beta.14",
"@ionic/angular": "^4.8.0",
"@ionic/angular-toolkit": "^2.0.0",
"@ionic/storage": "^2.2.0",
"angular-archwizard": "^5.0.0",
"aws-amplify": "^1.2.4",
"aws-appsync": "^3.0.2",
"chart.js": "^2.7.2",
"cordova-android": "^8.1.0",
"cordova-browser": "5.0.4",
"cordova-plugin-camera": "^4.0.3",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-file": "^6.0.1",
"cordova-plugin-file-transfer": "^1.7.1",
"cordova-plugin-filepath": "^1.5.1",
"cordova-plugin-insomnia": "git+https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin.git",
"cordova-plugin-ionic-keyboard": "^2.1.2",
"cordova-plugin-ionic-webview": "^2.1.0",
"cordova-plugin-network-information": "^2.0.1",
"cordova-plugin-splashscreen": "^5.0.2",
"cordova-plugin-whitelist": "^1.3.3",
"cordova-sqlite-storage": "^3.1.0",
"core-js": "^2.5.3",
"graphql-tag": "^2.10.1",
"ionic": "^5.2.5",
"phonegap-plugin-barcodescanner": "^8.0.0",
"platform": "1.3.5",
"rxjs": "6.3.3",
"rxjs-compat": "^6.3.3",
"types": "^0.1.1",
"typescript": "3.1",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular-devkit/architect": "~0.10.5",
"@angular-devkit/build-angular": "~0.10.5",
"@angular-devkit/core": "~0.7.5",
"@angular-devkit/schematics": "~0.7.5",
"@angular/cli": "~7.0.3",
"@angular/compiler": "~7.0.3",
"@angular/compiler-cli": "~7.0.3",
"@angular/language-service": "~7.0.3",
"@ionic/app-scripts": "^3.2.4",
"@ionic/lab": "2.0.8",
"@ionic/ng-toolkit": "^1.0.0",
"@ionic/schematics-angular": "^1.0.0",
"@types/jasmine": "~2.8.6",
"@types/jasminewd2": "~2.0.3",
"@types/node": "^10.9.4",
"codelyzer": "~4.4.2",
"cordova-plugin-bluetooth-serial": "^0.4.7",
"jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~3.0.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.0",
"karma-jasmine": "~1.1.1",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.4.0",
"ts-node": "~7.0.0",
"tslint": "~5.11.0"
},
"description": "SI Install App",
"cordova": {
"plugins": {
"cordova-plugin-whitelist": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-ionic-webview": {},
"cordova-plugin-ionic-keyboard": {},
"cordova-plugin-insomnia": {},
"cordova-plugin-network-information": {},
"cordova-sqlite-storage": {},
"cordova-plugin-file": {},
"cordova-plugin-filepath": {},
"cordova-plugin-file-transfer": {},
"cordova-plugin-camera": {},
"cordova-plugin-bluetooth-serial": {}
},
"platforms": [
"browser",
"android"
]
}
}```
Can confirm this issue after deleting node_modules
and running npm i
with following deps:
"aws-amplify": "^1.1.38"
"aws-amplify-react": "^2.3.9"
The temporary fix worked fine for me, as I'm not compiling to an APK like @satishmolletipipra. Perhaps there's a flag you can set on the Ionic level to ignore checking modules? I'm not familiar with Ionic sorry.
Are there any plans for amplify to start using @types/zen-observable 0.8.0? Would be nice if the package was in line with app-sync so we didn't have to circumvent the type checking of declaration files using the temporary fix outlined in https://github.com/aws-amplify/amplify-js/issues/1732#issuecomment-450761829
@Ashish-Nanda We forked the https://github.com/aws-amplify/amplify-js repository and we are trying to customize the errors but am not able to build and publish the code. can you please help me on this, how can we run, build and publish the code.
Thanks everyone for the input! Based on your details, I was able to identify where the regression appeared and opened https://github.com/aws-amplify/amplify-js/pull/4494/ to resolve it.
@ericclemmons awesome - thanks!
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.
Am getting duplicate identifier subscriber issue from past 2 weeks.
Package.json.
We gone through https://github.com/aws-amplify/amplify-js/issues/3248 issue and updated the comment but i did't get any reply on that.