aws-amplify / amplify-js

A declarative JavaScript library for application development using cloud services.
https://docs.amplify.aws/lib/q/platform/js
Apache License 2.0
9.43k stars 2.12k forks source link

The @aws-amplify/react-native dependency causes React Native to not compile on iOS. #12713

Closed chasing closed 9 months ago

chasing commented 10 months ago

Before opening, please confirm:

JavaScript Framework

React Native

Amplify APIs

Authentication, Push Notifications

Amplify Categories

auth, notifications

Environment information

``` # Put output below this line System: OS: macOS 14.1.1 CPU: (10) arm64 Apple M1 Max Memory: 3.59 GB / 64.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 21.1.0 - ~/.nvm/versions/node/v21.1.0/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 10.2.0 - ~/.nvm/versions/node/v21.1.0/bin/npm Browsers: Chrome: 120.0.6099.109 Safari: 17.1 Safari Technology Preview: 17.4 npmPackages: @aws-amplify/react-native: ^1.0.6 => 1.0.7 @aws-amplify/rtn-push-notification: ^1.2.6 => 1.2.6 (1.1.9) @babel/core: ^7.20.0 => 7.22.10 @babel/preset-env: ^7.20.0 => 7.22.10 @babel/runtime: ^7.20.0 => 7.22.10 @bam.tech/react-native-image-resizer: ^3.0.7 => 3.0.7 @react-native-async-storage/async-storage: ^1.21.0 => 1.21.0 @react-native-community/blur: ^4.3.2 => 4.3.2 @react-native-community/netinfo: ^9.4.1 => 9.4.1 @react-native-masked-view/masked-view: ^0.2.9 => 0.2.9 @react-native-picker/picker: ^2.5.1 => 2.5.1 @react-native/eslint-config: ^0.72.2 => 0.72.2 @react-native/metro-config: ^0.72.11 => 0.72.11 @react-navigation/bottom-tabs: ^6.5.8 => 6.5.8 @react-navigation/native: ^6.1.7 => 6.1.7 @react-navigation/native-stack: ^6.9.13 => 6.9.13 @react-navigation/stack: ^6.3.17 => 6.3.17 @tsconfig/react-native: ^3.0.0 => 3.0.2 @types/react: ^18.0.24 => 18.2.20 @types/react-native-vector-icons: ^6.4.14 => 6.4.14 @types/react-test-renderer: ^18.0.0 => 18.0.0 ContextAPIMixpanel: 0.0.1 HelloWorld: 0.0.1 MixpanelDemo: 0.0.1 SimpleMixpanel: 0.0.1 amazon-cognito-identity-js: ^6.3.6 => 6.3.8 amazon-cognito-identity-js/internals: undefined () aws-amplify: ^5.3.13 => 5.3.13 babel-jest: ^29.2.1 => 29.6.2 babel-plugin-module-resolver: ^5.0.0 => 5.0.0 dayjs: ^1.11.10 => 1.11.10 eslint: ^8.19.0 => 8.47.0 jest: ^29.2.1 => 29.6.2 metro-react-native-babel-preset: 0.76.8 => 0.76.8 (0.76.7) mixpanel-react-native: ^2.4.0 => 2.4.0 mobx: ^6.10.2 => 6.10.2 mobx-react-lite: ^4.0.4 => 4.0.4 prettier: ^2.4.1 => 2.8.8 react: 18.2.0 => 18.2.0 react-native: ^0.72.4 => 0.72.4 react-native-fast-image: ^8.6.3 => 8.6.3 react-native-gesture-handler: ^2.12.1 => 2.12.1 react-native-get-random-values: ^1.10.0 => 1.10.0 react-native-image-picker: ^7.0.1 => 7.0.1 react-native-keychain: ^8.1.2 => 8.1.2 react-native-picker-select: ^9.0.0 => 9.0.0 react-native-reanimated: ^3.5.4 => 3.5.4 react-native-render-html: ^6.3.4 => 6.3.4 react-native-safe-area-context: ^4.7.3 => 4.7.3 react-native-screens: ^3.24.0 => 3.24.0 react-native-svg: ^13.14.0 => 13.14.0 react-native-svg-transformer: ^1.1.0 => 1.1.0 react-native-ui-lib: ^7.7.0 => 7.7.0 react-native-vector-icons: ^10.0.0 => 10.0.0 react-native-webview: ^13.6.3 => 13.6.3 react-test-renderer: 18.2.0 => 18.2.0 typescript: 4.8.4 => 4.8.4 (5.2.2) uilib-native: 4.0.0 npmGlobalPackages: @aws-amplify/cli: 12.8.2 corepack: 0.22.0 npm: 10.2.0 ```

Describe the bug

I've got a React Native app and I'm attempting to use AWS Amplify to manage push notifications.

AWS Amplify has so far been great for auth via Cognito.

I can't get the app to compile when I try to set up push notifications, though.

I'm following these instructions:

https://docs.amplify.aws/react-native/build-a-backend/push-notifications/set-up-push-notifications/

But the @aws-amplify/react-native library is causing problems. When I try to compile and run the app on iOS after adding that library via npm, I get:

- Building the app.

info 💡 Tip: Make sure that you have set up your development environment correctly, by running react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor 
node:internal/process/promises:289
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace GlobeThrivers.xcworkspace -configuration Debug -scheme GlobeThrivers -destination id=E49400FA-5645-4B20-BC5A-48B1D68606E4

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

Prepare packages

ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (83 targets)
    Target 'GlobeThrivers' in project 'GlobeThrivers'
        ➜ Implicit dependency on target 'Pods-GlobeThrivers' in project 'Pods' via file 'libPods-GlobeThrivers.a' in build phase 'Link Binary'
        ➜ Implicit dependency on target 'AmplifyRTNCore' in project 'Pods' via options '-lAmplifyRTNCore' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'AmplifyRTNPushNotification' in project 'Pods' via options '-lAmplifyRTNPushNotification' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'AmplifyUtilsNotifications' in project 'Pods' via options '-lAmplifyUtilsNotifications' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'CocoaAsyncSocket' in project 'Pods' via options '-lCocoaAsyncSocket' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'DoubleConversion' in project 'Pods' via options '-lDoubleConversion' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'Flipper' in project 'Pods' via options '-lFlipper' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'Flipper-Boost-iOSX' in project 'Pods' via options '-lFlipper-Boost-iOSX' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'Flipper-Fmt' in project 'Pods' via options '-lFlipper-Fmt' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'Flipper-Folly' in project 'Pods' via options '-lFlipper-Folly' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'Flipper-PeerTalk' in project 'Pods' via options '-lFlipper-PeerTalk' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'FlipperKit' in project 'Pods' via options '-lFlipperKit' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'Mixpanel-swift' in project 'Pods' via options '-lMixpanel-swift' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'MixpanelReactNative' in project 'Pods' via options '-lMixpanelReactNative' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'RCT-Folly' in project 'Pods' via options '-lRCT-Folly' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'RCTTypeSafety' in project 'Pods' via options '-lRCTTypeSafety' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'RNAWSCognito' in project 'Pods' via options '-lRNAWSCognito' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'RNCAsyncStorage' in project 'Pods' via options '-lRNCAsyncStorage' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'RNCMaskedView' in project 'Pods' via options '-lRNCMaskedView' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'RNCPicker' in project 'Pods' via options '-lRNCPicker' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'RNFastImage' in project 'Pods' via options '-lRNFastImage' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'RNGestureHandler' in project 'Pods' via options '-lRNGestureHandler' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'RNKeychain' in project 'Pods' via options '-lRNKeychain' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'RNReanimated' in project 'Pods' via options '-lRNReanimated' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'RNSVG' in project 'Pods' via options '-lRNSVG' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'RNScreens' in project 'Pods' via options '-lRNScreens' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'React-Codegen' in project 'Pods' via options '-lReact-Codegen' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'React-Core' in project 'Pods' via options '-lReact-Core' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'React-CoreModules' in project 'Pods' via options '-lReact-CoreModules' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'React-NativeModulesApple' in project 'Pods' via options '-lReact-NativeModulesApple' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'React-RCTAnimation' in project 'Pods' via options '-lReact-RCTAnimation' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'React-RCTAppDelegate' in project 'Pods' via options '-lReact-RCTAppDelegate' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'React-RCTBlob' in project 'Pods' via options '-lReact-RCTBlob' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'React-RCTImage' in project 'Pods' via options '-lReact-RCTImage' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'React-RCTLinking' in project 'Pods' via options '-lReact-RCTLinking' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'React-RCTNetwork' in project 'Pods' via options '-lReact-RCTNetwork' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'React-RCTSettings' in project 'Pods' via options '-lReact-RCTSettings' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'React-RCTText' in project 'Pods' via options '-lReact-RCTText' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'React-RCTVibration' in project 'Pods' via options '-lReact-RCTVibration' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'React-cxxreact' in project 'Pods' via options '-lReact-cxxreact' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'React-debug' in project 'Pods' via options '-lReact-debug' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'React-hermes' in project 'Pods' via options '-lReact-hermes' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'React-jsi' in project 'Pods' via options '-lReact-jsi' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'React-jsiexecutor' in project 'Pods' via options '-lReact-jsiexecutor' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'React-jsinspector' in project 'Pods' via options '-lReact-jsinspector' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'React-logger' in project 'Pods' via options '-lReact-logger' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'React-perflogger' in project 'Pods' via options '-lReact-perflogger' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'React-runtimescheduler' in project 'Pods' via options '-lReact-runtimescheduler' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'React-utils' in project 'Pods' via options '-lReact-utils' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'ReactCommon' in project 'Pods' via options '-lReactCommon' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'ReactNativeUiLib' in project 'Pods' via options '-lReactNativeUiLib' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'SDWebImage' in project 'Pods' via options '-lSDWebImage' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'SDWebImageWebPCoder' in project 'Pods' via options '-lSDWebImageWebPCoder' in build setting 'OTHER_LDFLAGS'
        ➜ Implicit dependency on target 'SocketRocket' in project 'Pods' v
[error] npm run ios_large Failed
[error] ios_large Failed.

I'm totally out of ideas about how to get around this. Any ideas?

Expected behavior

I expect @aws-amplify/react-native to "just work" and allow the app to compile and run as expected.

Reproduction steps

  1. Existing app that compiles and runs.
  2. npm install @aws-amplify/react-native --save
  3. App that neither compiles nor runs.

Code Snippet

// Put your code below this line.

Log output

``` // Put your logs below this line Building the app......... - Building the app. - Building the app... - Building the app. info 💡 Tip: Make sure that you have set up your development environment correctly, by running react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor node:internal/process/promises:289 triggerUncaughtException(err, true /* fromPromise */); ^ [Command line invocation: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace GlobeThrivers.xcworkspace -configuration Debug -scheme GlobeThrivers -destination id=E49400FA-5645-4B20-BC5A-48B1D68606E4 User defaults from command line: IDEPackageSupportUseBuiltinSCM = YES Prepare packages ComputeTargetDependencyGraph note: Building targets in dependency order note: Target dependency graph (83 targets) Target 'GlobeThrivers' in project 'GlobeThrivers' ➜ Implicit dependency on target 'Pods-GlobeThrivers' in project 'Pods' via file 'libPods-GlobeThrivers.a' in build phase 'Link Binary' ➜ Implicit dependency on target 'AmplifyRTNCore' in project 'Pods' via options '-lAmplifyRTNCore' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'AmplifyRTNPushNotification' in project 'Pods' via options '-lAmplifyRTNPushNotification' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'AmplifyUtilsNotifications' in project 'Pods' via options '-lAmplifyUtilsNotifications' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'CocoaAsyncSocket' in project 'Pods' via options '-lCocoaAsyncSocket' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'DoubleConversion' in project 'Pods' via options '-lDoubleConversion' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'Flipper' in project 'Pods' via options '-lFlipper' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'Flipper-Boost-iOSX' in project 'Pods' via options '-lFlipper-Boost-iOSX' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'Flipper-Fmt' in project 'Pods' via options '-lFlipper-Fmt' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'Flipper-Folly' in project 'Pods' via options '-lFlipper-Folly' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'Flipper-PeerTalk' in project 'Pods' via options '-lFlipper-PeerTalk' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'FlipperKit' in project 'Pods' via options '-lFlipperKit' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'Mixpanel-swift' in project 'Pods' via options '-lMixpanel-swift' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'MixpanelReactNative' in project 'Pods' via options '-lMixpanelReactNative' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'RCT-Folly' in project 'Pods' via options '-lRCT-Folly' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'RCTTypeSafety' in project 'Pods' via options '-lRCTTypeSafety' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'RNAWSCognito' in project 'Pods' via options '-lRNAWSCognito' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'RNCAsyncStorage' in project 'Pods' via options '-lRNCAsyncStorage' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'RNCMaskedView' in project 'Pods' via options '-lRNCMaskedView' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'RNCPicker' in project 'Pods' via options '-lRNCPicker' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'RNFastImage' in project 'Pods' via options '-lRNFastImage' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'RNGestureHandler' in project 'Pods' via options '-lRNGestureHandler' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'RNKeychain' in project 'Pods' via options '-lRNKeychain' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'RNReanimated' in project 'Pods' via options '-lRNReanimated' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'RNSVG' in project 'Pods' via options '-lRNSVG' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'RNScreens' in project 'Pods' via options '-lRNScreens' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'React-Codegen' in project 'Pods' via options '-lReact-Codegen' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'React-Core' in project 'Pods' via options '-lReact-Core' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'React-CoreModules' in project 'Pods' via options '-lReact-CoreModules' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'React-NativeModulesApple' in project 'Pods' via options '-lReact-NativeModulesApple' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'React-RCTAnimation' in project 'Pods' via options '-lReact-RCTAnimation' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'React-RCTAppDelegate' in project 'Pods' via options '-lReact-RCTAppDelegate' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'React-RCTBlob' in project 'Pods' via options '-lReact-RCTBlob' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'React-RCTImage' in project 'Pods' via options '-lReact-RCTImage' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'React-RCTLinking' in project 'Pods' via options '-lReact-RCTLinking' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'React-RCTNetwork' in project 'Pods' via options '-lReact-RCTNetwork' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'React-RCTSettings' in project 'Pods' via options '-lReact-RCTSettings' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'React-RCTText' in project 'Pods' via options '-lReact-RCTText' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'React-RCTVibration' in project 'Pods' via options '-lReact-RCTVibration' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'React-cxxreact' in project 'Pods' via options '-lReact-cxxreact' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'React-debug' in project 'Pods' via options '-lReact-debug' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'React-hermes' in project 'Pods' via options '-lReact-hermes' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'React-jsi' in project 'Pods' via options '-lReact-jsi' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'React-jsiexecutor' in project 'Pods' via options '-lReact-jsiexecutor' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'React-jsinspector' in project 'Pods' via options '-lReact-jsinspector' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'React-logger' in project 'Pods' via options '-lReact-logger' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'React-perflogger' in project 'Pods' via options '-lReact-perflogger' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'React-runtimescheduler' in project 'Pods' via options '-lReact-runtimescheduler' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'React-utils' in project 'Pods' via options '-lReact-utils' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'ReactCommon' in project 'Pods' via options '-lReactCommon' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'ReactNativeUiLib' in project 'Pods' via options '-lReactNativeUiLib' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'SDWebImage' in project 'Pods' via options '-lSDWebImage' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'SDWebImageWebPCoder' in project 'Pods' via options '-lSDWebImageWebPCoder' in build setting 'OTHER_LDFLAGS' ➜ Implicit dependency on target 'SocketRocket' in project 'Pods' v [error] npm run ios_large Failed [error] ios_large Failed. ```

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

nadetastic commented 10 months ago

Hi @chasing, thank you for opening this issue, im working to reproduce this however I haven't been able to get a build to fail with the error you see. Could you share the package.json you have so I can compare the dependency versions you have?

Samaritan1011001 commented 10 months ago

Hi @chasing, please make sure to run npx pod-install before you build the app and let me know if that helps?

cwomack commented 9 months ago

Closing this issue as we have not heard back from you. If you are still experiencing this, please feel free to reply back and provide any information previously requested and we'd be happy to re-open the issue.

Thank you!

supproduction commented 8 months ago

I have the same issue just after installing @aws-amplify/react-native dependency 1.0.16. Pod also has been installed Also tried with node 20\18

nadetastic commented 8 months ago

Hi @supproduction, what version of aws-amplify are you using?

supproduction commented 8 months ago

The latest 6.0.16 just run yarn add aws-amplify @aws-amplify/react-native and after it build problem from this topic

Tried aws-amplify 5 - all good, but yeah in this case we don't use @aws-amplify/react-native.

If you need more info I can provide, cause this error is not informative at all. Don't know how I can even debug it. It would be nice to use the latest version rather than outdated on 1 major

supproduction commented 8 months ago

I found the reason. Looks like there is inconcistency with amazon-cognito-identity-js.

Without cognito dependency all good. @aws-amplify/react-native + amazon-cognito-identity-js cause conflict.

nadetastic commented 8 months ago

@supproduction glad you were able to figure this out! And that is correct - v6 of aws-amplify no longer uses the amazon-cognito-identity-js package and may cause issues with it. Let me know if you have any additional questions!