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

Builds of my ember.js project are failing due to @aws-amplify/core's dependency on react-native/use-subscription. #9757

Closed
3 tasks done
hoIIer opened this issue Mar 31, 2022 · 2 comments
Assignees
Labels
Build Related to build issues React Native React Native related issue

Comments

@hoIIer
Copy link

hoIIer commented Mar 31, 2022

Before opening, please confirm:

JavaScript Framework

Not applicable

Amplify APIs

Authentication

Amplify Categories

auth

Environment information

Ember.js project using ember-cognito which has a hard dependency on @aws-ampify/core

Describe the bug

My ci/cd builds on aws codepipeline began to fail today due to a bug in react-native/use-subscription

running npm list react-native shows that react-native is installed via this lib and now it was causing builds to fail despite that project doesn't use react-native.

Expected behavior

@aws-ampify/core does not install react-native.

Reproduction steps

npm install -D ember-cognito

Code Snippet

// Put your code below this line.

Log output

[Container] 2022/03/31 23:15:26 Running command npm ci
--
43 | npm WARN ERESOLVE overriding peer dependency
44 | npm WARN While resolving: use-subscription@1.6.0
45 | npm WARN Found: react@17.0.2
46 | npm WARN node_modules/react
47 | npm WARN   peer react@"17.0.2" from react-native@0.68.0
48 | npm WARN   node_modules/react-native
49 | npm WARN     peer react-native@"*" from @react-native-community/cli@7.0.3
50 | npm WARN     node_modules/@react-native-community/cli
51 | npm WARN     1 more (react-native-get-random-values)
52 | npm WARN   1 more (react-shallow-renderer)
53 | npm WARN
54 | npm WARN Could not resolve dependency:
55 | npm WARN peer react@"^18.0.0" from use-subscription@1.6.0
56 | npm WARN node_modules/use-subscription
57 | npm WARN   use-subscription@"^1.0.0" from react-native@0.68.0
58 | npm WARN   node_modules/react-native
59 | npm WARN
60 | npm WARN Conflicting peer dependency: react@18.0.0
61 | npm WARN node_modules/react
62 | npm WARN   peer react@"^18.0.0" from use-subscription@1.6.0
63 | npm WARN   node_modules/use-subscription
64 | npm WARN     use-subscription@"^1.0.0" from react-native@0.68.0
65 | npm WARN     node_modules/react-native

aws-exports.js

No response

Manual configuration

No response

Additional configuration

No response

Mobile Device

No response

Mobile Operating System

No response

Mobile Browser

No response

Mobile Browser Version

No response

Additional information and screenshots

No response

@chrisbonifacio chrisbonifacio added Build Related to build issues React Native React Native related issue pending-triage Issue is pending triage labels Apr 1, 2022
@hoIIer
Copy link
Author

hoIIer commented Apr 4, 2022

@chrisbonifacio going to close this as I worked around it by using a different lib that uses amazon-cognito-identity-js instead of the aws-amplify under the hood... I don't know enough about this project re: react-native and whether it's expected to be installed :)

@hoIIer hoIIer closed this as completed Apr 4, 2022
@github-actions
Copy link

github-actions bot commented Apr 5, 2023

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 amplify-help forum.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 5, 2023
@chrisbonifacio chrisbonifacio removed the pending-triage Issue is pending triage label May 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Build Related to build issues React Native React Native related issue
Projects
None yet
Development

No branches or pull requests

3 participants