Describe the bug
During runtime, aws-amplify-react depends (at least) on:
@aws-amplify/analytics
@aws-amplify/api
@aws-amplify/interactions
@aws-amplify/storage
But these dependencies are not declared on the respective package.json.
They seem to be expected to be installed by aws-amplify.
That wouldn't be a problem, but at least having them as peer-dependency would warn the developer about the problem.
To Reproduce
Steps to reproduce the behavior:
aws-amplify-react and some @aws-amplify/* module, but not aws-amplifyExpected behavior
App should run OR aws-amplify-react should declare its own dependencies
Screenshots
-
Desktop (please complete the following information):
Additional context
I was trying to use only @aws-amplify/auth and aws-amplify-react.
@aldo-roman for now you must install aws-amplify when using aws-amplify-react. We will mark this as feature request.
The docs seem to imply that this is already supposed to work: https://github.com/aws-amplify/amplify-js/wiki/Amplify-modularization#apply-modularized-amplify-to-other-packages
I am using aws-amplify-react-native BTW and its the same issue
Closing the issue because the aws-amplify has been marked as peerDenpendencies.
Does aws-amplify-react really need to depend on @aws-amplify/xr?
I just want to have a component not Augmented Reality on my app.
Most helpful comment
The docs seem to imply that this is already supposed to work: https://github.com/aws-amplify/amplify-js/wiki/Amplify-modularization#apply-modularized-amplify-to-other-packages