嗨,我是新的反应本地人,我已经创建了一个新的RN项目在VScode。
这是信息
info Fetching system and libraries information...
(node:92233) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
System:
OS: mac
当我想要为生产环境编译我的IOS应用程序时,出现了这个错误:'folly/Portability.h' file not found和echo 'error:this File .../main.jsbundle does not exist. This must be a bug with我已经搜索了互联网来解决这个问题,但是我不能解决它 以下是react-native的信息: React Native Environment Info:
System:
OS: macOS 10.14.4
CPU: (4) x64 Intel(R) Core(TM) i
我想要一些帮助让一个股票应用程序运行在官方Getting Started之后。 我下载了iOS模拟器14.3。 我跑步 npx react-native init nuproject cd nuproject npx react-native run-ios 我得到了 nvm is not compatible with the "PREFIX" environment variable: currently set to "/Users/me/.asdf/installs/nodejs/15.8.0/.npm"
Run `unset PREFIX` to u
我有一个实现ActivityEventListener的React Native Android Native模块
在Android studio中,它会生成一个方法:
onActivityResult(int,int,IntentData)
但是当我将它导入react native并尝试运行android时,它会要求提供一个需要实现的onNewIntent(Intent intent),并且
CLass is not abstract and does not override abstract method onActivityResult(Activity,int,int,Intent)
试图运行react本机项目,但遇到以下错误
N/A: version "default -> N/A" is not yet installed.
You need to run "nvm install default" to install it before using it.
Command PhaseScriptExecution failed with a nonzero exit code
npx react-native info输出
System:
OS: macOS 12.5.1
CPU: (10) arm64 App
我在react-native run-android进程中得到一些类似这样的错误
error: bundling failed: Error: Unable to resolve module `scheduler/tracing` from `/Users/miftahali/projects/react/appscustomec/node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-dev.js`: Module `scheduler/tracing` does not exist in the Haste
显然发生了RN故障。这引起了很多问题,因为我现在可以得到一个构建。
但是这个“修正”是用来看的
这方面的问题是,没有提到0.71.0-RC.0版本的修复,我在该版本上,当我尝试运行npx react原生运行-android时,我得到以下信息:
> Could not find any matches for com.facebook.react:react-native:+ as no versions of com.facebook.react:react-native are available.
如果有人碰到这件事,你能说说你是怎么解决的吗?我不明白具体针对我的情况是什么解
我有一个项目,我正在工作,昨天建立。今天,我得到了这个错误‘操作员"abs“找不到”,如下面的截图所示。我没有使用expo作为构建系统,尽管该项目使用了react-native-reanaminated,它在我寻找解决方案的过程中不断出现,在这个答案中也是React Native Getting this error 'Unrecognized operator abs'。 我尝试了那里的解决方案,但没有效果。任何指导都将不胜感激。 ❯ npx react-native info
info Fetching system and libraries informati
当我在应用程序中的各个组件上运行一些单元测试时,我一直收到这个恼人的警告:
NativeModules.RNViewShot is undefined. Make sure the library is linked on the native side.
在我的根dir中,我运行'react-native link'并在控制台中看到这一点:
rnpm-install info Platform 'ios' module react-native-view-shot is already linked
rnpm-install info Platform
我正在为CICD的反应本地应用程序使用天蓝色管道。我使用macOS Big (11.4)和AndroidStudio4.2.2作为本地机器来创建和测试该应用程序。应用程序在本地机器上运行良好,没有任何警告或问题。然而,当我在Azure管道上推送代码时,它给我的错误如下所示,
* /Users/runner/work/1/s/node_modules/react-native-gesture-handler/src/index.ts/index(.native|.android.jsx|.native.jsx|.jsx|.android.js|.native.js|.js|.android
当我运行npm run android时,我遇到了构建失败(在安卓的macOS上),并且我得到了以下构建失败:
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':app:debugCompileClasspath
当我在mac上运行这个命令时
npx @react-native-community/cli doctor
我得到了一个有趣的未被识别的java版本:
Common
✓ Node.js
✓ yarn
✓ Watchman - Used for watching changes in the filesystem when in development mode
Androidœ- JDK
1.8.0_242-releaseVersion支持的版本:>=
当我执行:
react-native info
我得到:
信息获取系统和图书馆信息..。
System:
我试图弹出我的应用程序来生成Android文件夹。我以前就知道它有效,但是当我在React的根目录中输入react-native eject时,我得到的是:
can-mbp:MyApp can$ react-native eject
warn Your project is using deprecated "rnpm" config that will stop working from next release. Please use a "react-native.config.js" file to configure the React Native
我刚开始学习React Native。一旦我运行了"react-native run-android",我就得到了这个错误
Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Could not find support-vector-drawable.aar (com.android.support:support-vector-drawable:27.1.1).
Searched in the following locations:
我转到M1机器,并得到了expo-av的错误,我找不到任何与此错误有关的东西,它只发生在安卓.
用于运行项目的命令:npx react-native run-android构建错误:
> Task :expo-av:configureCMakeDebug[arm64-v8a] FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':expo-av:configureCMakeDebug[arm64-v8a]'.
> [CXX140
自从我将macOS升级到Catalina之后,我就无法构建Xcode了。
我收到以下错误消息:
/node_modules/react-native/React/Views/UIView+React.h:10:9: 'React/RCTComponent.h' file not found
/node_modules/react-native/React/Base/RCTEventDispatcher.h:10:9: 'React/RCTBridge.h' file not found
我尝试了以下顺序:
rm -rf node_modulesnpm run
react-native run-android没有启动邦德勒,所以我尝试了react-native start,显示了下面的错误。
┌──────────────────────────────────────────────────────────────────────────────┐
│ │
│ Running Metro Bundler on port 8081.