internal/modules/cjs/loader.js:895throw err;^错误:无法找到模块“C:\Users\Jobay\AppData\Roaming\npm\node_modules\expo-cli\bin\expo.js”at Function.Module._resolveFilename (internal/modules/cjs/loader.js:892:15)a
2020-10-26
我尝试将 glb 文件加载为:const asset = Asset.fromModule(require('../assets/webgl/RModelNoKeys.glb'));#metro.config.jsmodule.exports = {resolver: {assetExts: ['db', 'mp3', 'ttf', 'obj', 'png', 'jpg', 'gltf', 'gl
2021-05-30
我正在与小组成员一起研究一个 React Native 项目。创建该项目的小组成员在运行该项目时没有遇到任何问题。我已全局安装了 expo,但无法运行该程序:Unable to find expo in this project - have you run yarn / npm install yet?├─ action C:\Users\thoma\AppData\Roaming\npm\no
2021-06-07
我安装了一个 expo-constant 进行测试,之后我通过npm uninstall expo-constants现在当我运行我的应用程序时出现错误:Unable to resolve module expo-constants fromC:\Users..\node_modules\expo-font\build\FontLoader.js: expo-constantscould not
2021-12-17
首次使用 React Native。当我运行 npm start 并打开 localhost 时,系统提示“发生了意外错误”。如果我扫描 Expo 应用中的二维码,系统提示“出现问题。网络响应超时”。当我打开控制台时,系统显示我创建的应用为:npm install -g expo-cliexpo init MyAppSelected the typescript templateAnd then
2022-06-16
嗨,我在 android 中遇到了这个问题。我使用的是 react-native: 0.59.8,@unimodules/core: ^4.0.0,@unimodules/react-native-adapter: ^4.0.0
2019-11-05
我查看了 expo-apple-authentication 文档,我认为我遵循了所有安装和配置说明。但是,当我尝试以下任一导入时,模拟器会在主题行中返回错误:import * as AppleAuthentication from "expo-apple-authentication";import AppleAuthenticationButton from "expo-apple-authe
2019-11-28
嗨,我在尝试安装和导入 expo-notifications 时遇到错误。我按照此处的文档操作:https://docs.expo.io/versions/v38.0.0/sdk/notifications/并运行expo install expo-notifications,但尝试导入时收到此错误。我知道错误来自此导入,因为当我将其注释掉时,我的应用程序正常加载。我正在使用 expo 管理的工作
2020-06-25
亲爱的 stackoverflow 社区,我无法在网上找到任何解决方案来解决我的问题。我的错误如下:Can't find variable: requirehttp://127.0.0.1:19001/node_modules/expo/AppEntry.bundle?platform=android&dev=true&minify=false&hot=false:5:24global code@
2020-09-02
我尝试按照本教程使用 react-navigation 在 React Native 中实现导航,但在启动应用程序时遇到以下错误:undefined 不是对象(正在评估“this.props.navigation.navigate”)render index.android.js:17:12我的 index.android.js:import React, { Component } from '
2017-07-24
我试图在用户登录成功时重定向用户,但出现此错误:“未定义不是对象(评估‘_this2.props.navigation’)”这是我在 App.js 中的代码:const Homepage = StackNavigator({Home: {screen: Home},Store: {screen: Store},Admin: {screen: Admin},});这是我在 Store.js 中的代码
2017-09-17
因此,这是我创建的导航容器:<NavigationContainer><Stack.NavigatorscreenOptions={{headerShown: false}}><Stack.Screen name="Home" component={HomeScreen} /><Stack.Screen name="Music" component={MusicScreen} /><Stack.S
2020-09-23
当我在获取 json 响应后尝试导航到下一个视图时,出现了这种类型错误。但是如果我使用 json 响应获取方法之外的方法,我的this.props.navigator.push({id:'HomeCaseList')可以正常工作。有人能帮我吗?click 事件<MKButtonstyle={{marginLeft:10, marginRight:10,marginTop:10,marginBott
2016-04-09
你得对我宽容点。。。对 React Native 非常陌生我有这段代码,非常简单:export default class signup extends Component {constructor(props){super(props);this.state = {loaded: true,email: '',password: ''};}signup(){this.setState({load
2016-07-15
我正在练习 React Native。当我编译以下程序时,我得到了无法读取未定义属性“props”的 Details.js 错误。请让我知道这里出了什么问题。Layout.jsimport React, {Component} from 'react';import Header from './Header';import Details from './Details';export defa
2017-03-30