klaviyo / klaviyo-react-native-sdk

MIT License
4 stars 3 forks source link

React Native 0.74 Support #150

Closed tsopin closed 3 months ago

tsopin commented 4 months ago

Checklist

Description

Installing klaviyo-react-native-sdk@0.4.0 in iOS fails with the latest version of React Native 0.74.

Expected behavior

Successful installation

Actual behavior

When running pod install on a newly created RN 0.74 project, it fails with:

[!] Invalid `Podfile` file:
...
ModuleInterfaceNotFoundParserError: Module NativeKlaviyoReactNativeSdk: No TypeScript interfaces extending TurboModule were detected in this NativeModule spec.
...

Steps to reproduce

1. Create a new React Native project `npx react-native@latest init AwesomeProject`
2. Install Klaviyo `yarn add klaviyo-react-native-sdk`
3. Run `pod install` from `ios` folder of the project

The Klaviyo React Native SDK version information

0.4.0

Environment Description

System: OS: macOS 14.3 CPU: (12) arm64 Apple M2 Max Memory: 434.53 MB / 32.00 GB Shell: version: "5.9" path: /bin/zsh Binaries: Node: version: 21.4.0 path: /opt/homebrew/bin/node Yarn: version: 1.22.19 path: /usr/local/bin/yarn npm: version: 10.2.4 path: /opt/homebrew/bin/npm Watchman: version: 2023.12.04.00 path: /opt/homebrew/bin/watchman Managers: CocoaPods: version: 1.15.2 path: /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: - DriverKit 23.0 - iOS 17.0 - macOS 14.0 - tvOS 17.0 - watchOS 10.0 Android SDK: API Levels: - "33" - "34" Build Tools: - 30.0.3 - 33.0.0 - 33.0.1 - 33.0.2 - 34.0.0 System Images: - android-33 | Android TV ARM 64 v8a - android-33 | Google TV ARM 64 v8a - android-33 | Google APIs ARM 64 v8a - android-33 | Google Play ARM 64 v8a - android-34 | Google APIs ARM 64 v8a Android NDK: Not Found IDEs: Android Studio: 2022.3 AI-223.8836.35.2231.10671973 Xcode: version: 15.0.1/15A507 path: /usr/bin/xcodebuild Languages: Java: version: 17.0.8.1 path: /usr/bin/javac Ruby: version: 2.6.10 path: /usr/bin/ruby npmPackages: "@react-native-community/cli": Not Found react: installed: 18.2.0 wanted: 18.2.0 react-native: installed: 0.74.0 wanted: 0.74.0 react-native-macos: Not Found npmGlobalPackages: "react-native": Not Found Android: hermesEnabled: true newArchEnabled: false iOS: hermesEnabled: true newArchEnabled: false

ajaysubra commented 4 months ago

Hey @tsopin Thanks for reporting this issue to us and providing all the details. We are able to reproduce this on our end and will get back to you as soon as we have a solution.

github-actions[bot] commented 3 months ago

This issue is stale due to inactivity. Please let us know if you are still encountering issues, otherwise this issue will automatically close in 10 days.

AronBe commented 3 months ago

Build worked for me 👍

ajaysubra commented 3 months ago

Thanks for confirming @AronBe

@tsopin this should be fixed now and available in the latest release 0.4.1. Thanks for your patience.