question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No such module 'React'

See original GitHub issue

No such module ‘React’ in the new project!

My old project with react native not run with react native 0.60.5.

I create a new iOS project and integrate with React Native (https://facebook.github.io/react-native/docs/integration-with-existing-apps), but the result is the same, I can’t run the project because the module React no such.

React Native version:

System: OS: macOS 10.14.6 CPU: (4) x64 Intel® Core™ i5-5257U CPU @ 2.70GHz Memory: 57.05 MB / 8.00 GB Shell: 5.3 - /bin/zsh Binaries: Node: 10.6.0 - ~/.nvm/versions/node/v10.6.0/bin/node Yarn: 1.5.1 - /usr/local/bin/yarn npm: 6.9.0 - ~/.nvm/versions/node/v10.6.0/bin/npm Watchman: 4.7.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 12.4, macOS 10.14, tvOS 12.4, watchOS 5.3 Android SDK: API Levels: 23, 24, 25, 26, 27, 28 Build Tools: 23.0.1, 23.0.3, 25.0.0, 25.0.1, 25.0.2, 25.0.3, 26.0.2, 26.0.3, 27.0.3, 28.0.3, 29.0.0 System Images: android-23 | Intel x86 Atom_64, android-23 | Google APIs Intel x86 Atom_64, android-25 | Google APIs ARM EABI v7a, android-25 | Google APIs Intel x86 Atom IDEs: Android Studio: 3.3 AI-182.5107.16.33.5314842 Xcode: 10.3/10G8 - /usr/bin/xcodebuild npmPackages: react-native: ^0.60.5 => 0.60.5

My package.json:

{ "name": "MyReactNativeApp", "version": "0.0.1", "private": true, "scripts": { "start": "yarn react-native start" }, "dependencies": { "react-native": "^0.60.5" } }

My Podfile:

`platform :ios, ‘9.0’ require_relative ‘…/node_modules/@react-native-community/cli-platform-ios/native_modules’

target ‘NewReactNativeIntegrate’ do pod ‘React’, :path => ‘…/node_modules/react-native/’ pod ‘React-Core’, :path => ‘…/node_modules/react-native/React’ pod ‘React-DevSupport’, :path => ‘…/node_modules/react-native/React’ pod ‘React-RCTActionSheet’, :path => ‘…/node_modules/react-native/Libraries/ActionSheetIOS’ pod ‘React-RCTAnimation’, :path => ‘…/node_modules/react-native/Libraries/NativeAnimation’ pod ‘React-RCTBlob’, :path => ‘…/node_modules/react-native/Libraries/Blob’ pod ‘React-RCTImage’, :path => ‘…/node_modules/react-native/Libraries/Image’ pod ‘React-RCTLinking’, :path => ‘…/node_modules/react-native/Libraries/LinkingIOS’ pod ‘React-RCTNetwork’, :path => ‘…/node_modules/react-native/Libraries/Network’ pod ‘React-RCTSettings’, :path => ‘…/node_modules/react-native/Libraries/Settings’ pod ‘React-RCTText’, :path => ‘…/node_modules/react-native/Libraries/Text’ pod ‘React-RCTVibration’, :path => ‘…/node_modules/react-native/Libraries/Vibration’ pod ‘React-RCTWebSocket’, :path => ‘…/node_modules/react-native/Libraries/WebSocket’

pod ‘React-cxxreact’, :path => ‘…/node_modules/react-native/ReactCommon/cxxreact’ pod ‘React-jsi’, :path => ‘…/node_modules/react-native/ReactCommon/jsi’ pod ‘React-jsiexecutor’, :path => ‘…/node_modules/react-native/ReactCommon/jsiexecutor’ pod ‘React-jsinspector’, :path => ‘…/node_modules/react-native/ReactCommon/jsinspector’ pod ‘yoga’, :path => ‘…/node_modules/react-native/ReactCommon/yoga’

pod ‘DoubleConversion’, :podspec => ‘…/node_modules/react-native/third-party-podspecs/DoubleConversion.podspec’ pod ‘glog’, :podspec => ‘…/node_modules/react-native/third-party-podspecs/glog.podspec’ pod ‘Folly’, :podspec => ‘…/node_modules/react-native/third-party-podspecs/Folly.podspec’

use_native_modules! end `

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:12

github_iconTop GitHub Comments

8reactions
iShawnWangcommented, Aug 31, 2019

same issue here

7reactions
tiagobbragacommented, Aug 29, 2019

Hi…

So, the problem is in Xcode with Swift, see:

Screen Shot 2019-08-29 at 3 30 26 PM

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting error "No such module" using Xcode, but the ...
For some reason this isn't shown in xcode 9.1 even when it's present. Right click on your framework > Show In Finder >...
Read more >
Xcode 12.0.1 "No such module" | Apple Developer Forums
1 I can't build my projects anymore. Each time I do I get "No such module..." for each Pod. I haven't made any...
Read more >
`No Such Module` in Code Analysis : OC-15613 - YouTrack
TEMPORARY WORKAROUND: build target for real device (or "iOS Device" placeholder). I have a Swift project with two different targets, one is for...
Read more >
No such module 'XCTest' : r/swift - Reddit
I've built this plugin and wanted to test only the swift code to make sure everything works properly. Funny story, when I create...
Read more >
iOS: no such module 'JitsiMeetSDK' - Jitsi Community Forum
Hi! I'm trying to run my Flutter app on iOS, but I have this error: no such module 'JitsiMeetSDK' This is what I'm...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found