小编She*_*ukh的帖子

获取 TypeError:this.InnerNativeModule.configureProps 不是 mac 上的 expo 中的函数

我正在运行一个使用 React Native expo 创建的 Android 应用程序。它在 Windows 机器 android studio 模拟器上运行良好最近我切换到 mac,当我在 android studio 中打开项目时会弹出此错误。

TypeError: this.InnerNativeModule.configureProps is not a function. (In 'this.InnerNativeModule.configureProps(uiProps, nativeProps)', 'this.InnerNativeModule.configureProps' is undefined)
at node_modules/react-native/Libraries/Core/ExceptionsManager.js:104:6 in reportException
at node_modules/react-native/Libraries/Core/ExceptionsManager.js:171:19 in handleException
at node_modules/react-native/Libraries/Core/setUpErrorHandling.js:24:6 in handleError
at node_modules/expo-error-recovery/build/ErrorRecovery.fx.js:12:21 in ErrorUtils.setGlobalHandler$argument_0
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

该错误的可能原因和可能的解决方案是什么?提前致谢

android-studio react-native expo

6
推荐指数
3
解决办法
9340
查看次数

如何访问vue3组合API中onMounted内部的方法?

我想做的是在设置完成并且页面安装在组合 API 中后访问方法,但 vue 没有访问该方法

我做错了什么?这是我的代码 -

export default defineComponent({  
  setup() {
    onMounted(() => {
      this.calcStartIndex();
    });
    return {};
  },
  methods: { 
    calcStartIndex() {
      console.log("startIndex");
    }
  },
})

Run Code Online (Sandbox Code Playgroud)

我收到的错误 -

TypeError: Cannot read properties of undefined (reading 'calcStartIndex')
Run Code Online (Sandbox Code Playgroud)

vuejs3 vue-composition-api

2
推荐指数
1
解决办法
1252
查看次数