我正在运行一个使用 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)
该错误的可能原因和可能的解决方案是什么?提前致谢
我想做的是在设置完成并且页面安装在组合 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)