expo icon indicating copy to clipboard operation
expo copied to clipboard

Expo fails to correctly bundle project w/ agora lib

Open davisuga opened this issue 4 months ago • 0 comments

Minimal reproducible example

https://github.com/davisuga/expo-agora-bug-repro

What platform(s) does this occur on?

iOS

Did you reproduce this issue in a development build?

Yes

Summary

Upgrading to Expo 50 causes the bundler to not properly load the Agora library.

iOS Bundling failed 4213ms (index.js)
error: node_modules/react-native-agora/src/specs/AgoraRtcSurfaceViewNativeComponent.tsx: /Users/davi/gits/eknme/node_modules/react-native-agora/src/specs/AgoraRtcSurfaceViewNativeComponent.tsx: Unable to parse file '/Users/davi/gits/eknme/node_modules/react-native-agora/src/specs/AgoraRtcSurfaceViewNativeComponent.tsx'. Unsupported filename extension.

Environment

expo-env-info 1.2.0 environment info: System: OS: macOS 14.2.1 Shell: 5.9 - /bin/zsh Binaries: Node: 20.9.0 - ~/.nvm/versions/node/v20.9.0/bin/node Yarn: 1.22.21 - ~/.nvm/versions/node/v20.9.0/bin/yarn npm: 10.1.0 - ~/.nvm/versions/node/v20.9.0/bin/npm Managers: CocoaPods: 1.14.3 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 23.0, iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0 IDEs: Xcode: 15.0.1/15A507 - /usr/bin/xcodebuild npmPackages: expo: ~50.0.6 => 50.0.6 react: 18.2.0 => 18.2.0 react-native: 0.73.4 => 0.73.4 npmGlobalPackages: eas-cli: 6.0.0 Expo Workflow: bare

Expo Doctor Diagnostics

✔ Check Expo config for common issues ✔ Check package.json for common issues ✔ Check dependencies for packages that should not be installed directly ✔ Check for common project setup issues ✔ Check for issues with metro config ✔ Check npm/ yarn versions ✔ Check Expo config (app.json/ app.config.js) schema ✔ Check for legacy global CLI installed locally ✔ Check that native modules do not use incompatible support packages ✔ Check that packages match versions required by installed Expo SDK ✔ Check that native modules use compatible support package versions for installed Expo SDK

davisuga avatar Feb 16 '24 16:02 davisuga