我将react-native更新为v0.57,react-native run-ios失败了。我按照babel-preset-react-native中的建议,用metro-react-native-babel-preset代替了。这是我正在获得的错误堆栈跟踪。
error: bundling failed: Error: Cannot find module 'babel-preset-react-native' from '/Users/buraktas/workspace/reactnative'
- If you want to resolve "
您好,我正在尝试按照官方文档上的"React Native CLI Quickstart“指南来设置我的第一个react-native应用程序,但是我被困在通过执行npx react-native init AwesomeProject创建react-native应用程序的过程中,命令提示符输出如下所示: npm ERR! Maximum call stack size exceeded
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Lee\AppDat
当我尝试安装和设置原生react时,关于core-js版本的注意事项是更新您的core-js@...到core-js@3,但不知道如何更新我的core-js。 $ sudo react-native init AwesomeProject121
Password:
This will walk you through creating a new React Native project in /Users/amarnr1989/AwesomeProject121
Using yarn v1.13.0
Installing react-native...
yarn add v1.13.0
i
react-native init AwesomeProject抛出了SyntaxError: Unexpected token :,我不知道为什么。我已经卸载并重新安装了react-native-cli。已尝试使用和不使用yarn。有什么建议吗?
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
Us
我刚开始使用monorepo和类型记录,它有一个react原生项目和一个包含要在项目之间共享的公共文件的公用文件夹,并且在应用程序运行时配置良好。
在导入和使用react-native组件的常见文件导入语句中,我面临的类型记录出现了错误。上面写着Cannot find module 'react-native' or its corresponding type declarations.ts(2307)。那么,是否有一种方法可以使类型记录来查找导入到react本机项目(移动目录) node_modules中的内容?
单光子结构:
monorepo
|
|---
我在依赖项下更新了react-native的版本到0.15.0,并运行npm install,当我运行react-native upgrade时,我得到了一个问题:
Error: Cannot find module 'opn' at Function.Module._resolveFilename (module.js:337:15) at Function.Module._load (module.js:287:25) at Module.require (module.js:366:17) at require (module.js:385
如果我在我的项目中添加了@type/styled组件,那么构建输出中就会出现一堆错误:
ERROR in /Users/me/projects/react/node_modules/@types/react-native/globals.d.ts(36,15):
TS2300: Duplicate identifier 'FormData'.
ERROR in /Users/me/projects/react/node_modules/@types/react-native/globals.d.ts(81,5):
TS2717: Subsequent property de
我试图通过从数据库中获取一个值,然后使用它来设置用户的状态。由于某些原因,状态没有更新,我尝试过等待和异步。如果这个选项不能可靠地使它成为一个值,还会有哪些其他选项。
我确实得到了以下错误:Warning: Can't call setState (or forceUpdate) on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in
我试图在React Native时加载数据,但我收到一个错误,指出: - node_modules/axios/lib/core/createError.js:15:17 in createError
- node_modules/axios/lib/core/settle.js:16:9 in settle
- node_modules/axios/lib/adapters/xhr.js:50:6 in handleLoad
- node_modules/event-target-shim/dist/event-target-shim.js:818:39 in EventTarget.pr
我的玩笑脚本在反应-本机-调制解调器上失败了。为什么玩笑在这一点上失败了
误差
● Test suite failed to run
TypeError: Cannot read property 'minor' of undefined
at Object.<anonymous> (node_modules/react-native-modalize/lib/utils/devices.js:20:76)
at Object.<anonymous> (node_modules/react-native-modali
所以我已经在我的react原生应用程序中实现了redux-form,它工作得很好。现在,客户询问我们是否可以将普通字段更改为material-ui like this,我尝试在我的react原生应用程序中实现redux-form-material-ui,但它不起作用。这是我在运行我的应用程序时得到的错误。 error: Error: Unable to resolve module `material-ui/Toggle` from `node_modules/redux-form-material-ui/lib/Toggle.js`: material-ui/Toggle could no
这是我得到的错误:
FAILURE: Build failed with an exception.
* Where:
Script 'D:\Mobile Projects\XXX\XXX\XXX\node_modules\@react-native-community\cli-platform-android\native_modules.gradle' line: 191
* What went wrong:
A problem occurred evaluating settings 'XXX'.
> Unable to determine
当我使用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 |