react-native-cli

Why does command 'react-native run-ios' build fail after upgrade to 0.63.3?

安稳与你 提交于 2021-01-28 04:42:26
问题 I just updated to RN v0.63.3. I was having issues with react-native run-ios on previous react-native version after changing the name of the app, and the project/schemes had different names, never got that issue solved, everyone said to just upgrade. now on v0.63.3 there is still an issue with failing build after react-native run-ios . this time the error is: ** BUILD FAILED ** The following build commands failed: CompileC /Users/vorousjames/Library/Developer/Xcode/DerivedData/<OLD_NAME>

react native ios build fails with error - 'EXUpdates/EXUpdatesAppController.h' file not found

為{幸葍}努か 提交于 2021-01-27 20:09:37
问题 react native ios build fails with error 'EXUpdates/EXUpdatesAppController.h' file not found file used in AppDelegate.h #import <Foundation/Foundation.h> #import <EXUpdates/EXUpdatesAppController.h> <--- here #import <React/RCTBridgeDelegate.h> #import <UIKit/UIKit.h> #import <UMCore/UMAppDelegateWrapper.h> @interface AppDelegate : UMAppDelegateWrapper <RCTBridgeDelegate, EXUpdatesAppControllerDelegate> @end Anyone solutions? 回答1: This error means that Xcode is unable to find the package that

error Failed to build iOS project. We ran “xcodebuild” command but it exited with error code 65. i can not Run my Project

强颜欢笑 提交于 2020-07-22 00:48:31
问题 i installed all the things as per official react-native website. but after creating project from terminal when i try to run my project i get an error. i used Xcode 10 and run on latest simulater and also already successfuly installed node and watchman with homebrew then installed npm install -g react-native-cli brew install node brew install watchman npm install -g react-native-cli react-native init AwesomeProject cd AwesomeProject react-native run-ios i expected to Run a Project but its

react-native start giving Invalid regular expression invalid error

一曲冷凌霜 提交于 2020-02-26 09:15:10
问题 I followed following link to get started with react-native Getting started with react native I tried to create native app without expo so i as per documentation i followed following command npm install -g react-native-cli react-native init AwesomeProject After run android command react-native run-android It gave me following error on emulator So i used start command to run metro server react-native start This command gave me another error in console 回答1: There are a problem with Metro using

react-native start giving Invalid regular expression invalid error

*爱你&永不变心* 提交于 2020-02-26 09:14:00
问题 I followed following link to get started with react-native Getting started with react native I tried to create native app without expo so i as per documentation i followed following command npm install -g react-native-cli react-native init AwesomeProject After run android command react-native run-android It gave me following error on emulator So i used start command to run metro server react-native start This command gave me another error in console 回答1: There are a problem with Metro using

How to upgrade core-js@3 in react-native cli?

谁都会走 提交于 2020-02-03 04:29:12
问题 I am trying to create new project with react-native cli, but when I create a new project I am receiving the following error message: react-native > create-react-class > fbjs > core-js@1.2.7: core-js@<2.6.8 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2. Listed below is the contents of my package.json file: { "name": "EmojiDictRN", "version": "0.0.1", "private": true, "scripts": { "start": "node node_modules/react-native/local-cli/cli.js start"

`react-native init AwesomeProject` throwing SyntaxError

两盒软妹~` 提交于 2019-12-31 03:26:31
问题 react-native init AwesomeProject is throwing SyntaxError: Unexpected token : and I'm not sure why. I've uninstalled and re-installed react-native-cli. Tried with and without yarn . Any suggestions? mes-MBP:myproject me$ react-native init AwesomeProject This will walk you through creating a new React Native project in /Users/me/WebstormProjects/myproject/AwesomeProject Using yarn v0.17.10 Installing react-native... /Users/me/WebstormProjects/myproject/AwesomeProject/node_modules/react-native

SyntaxError: You can only use Class Properties when the 'classProperties' plugin is enabled

独自空忆成欢 提交于 2019-12-30 19:05:27
问题 I am getting the following syntax error when I initialize an app using react-native init MyApp SyntaxError: /Users/MyAccount/RNProjects/app/node_modules/react-native/packager/react-packager/src/node-haste/index.js: You can only use Class Properties when the 'classProperties' plugin is enabled. (389:2) 387 | } 388 | > 389 | static Cache; | ^ 390 | static Module; 391 | static Polyfill; 392 | static getAssetDataFromName; at Parser.pp$5.raise (/Users/MyAccount/RNProjects/app/node_modules/babylon

SyntaxError: You can only use Class Properties when the 'classProperties' plugin is enabled

末鹿安然 提交于 2019-12-30 19:05:13
问题 I am getting the following syntax error when I initialize an app using react-native init MyApp SyntaxError: /Users/MyAccount/RNProjects/app/node_modules/react-native/packager/react-packager/src/node-haste/index.js: You can only use Class Properties when the 'classProperties' plugin is enabled. (389:2) 387 | } 388 | > 389 | static Cache; | ^ 390 | static Module; 391 | static Polyfill; 392 | static getAssetDataFromName; at Parser.pp$5.raise (/Users/MyAccount/RNProjects/app/node_modules/babylon

What is the difference between Expo CLI and React Native CLI? [duplicate]

痞子三分冷 提交于 2019-12-23 13:38:16
问题 This question already has answers here : What is the difference between Expo and React Native? (8 answers) Closed 10 months ago . React Native provides two way to create Project. First: npm install -g expo-cli Second: npm install -g react-native-cli so what is different between them and what should be used if we create react native app? 回答1: React Native init: Advantages: You can add native modules written in Java/Objective-C (probably the only but the strongest one) Disadvantages: Needs