1

这是我的第一个vue-native应用程序。我收到了这个错误:

Error: Element type is invalid: expected a string (for built-in components) 
or a class/function (for composite components) but got: object.

Check the render method of `ExpoRootComponent`.

在此处输入图像描述

包.json

{
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "web": "expo start --web",
    "eject": "expo eject"
  },
  "dependencies": {
    "expo": "~40.0.0",
    "expo-status-bar": "~1.0.3",
    "react": "16.13.1",
    "react-dom": "16.13.1",
    "react-native": "https://github.com/expo/react-native/archive/sdk-40.0.1.tar.gz",
    "react-native-web": "~0.13.12",
    "react-router-dom": "^6.0.0-beta.0",
    "vue-native-core": "0.2.0",
    "vue-native-helper": "0.2.0"
  },
  "devDependencies": {
    "@babel/core": "7.0.0",
    "vue-native-scripts": "0.2.0"
  },
  "private": true
}

我已经尝试过多次创建该项目并搜索了解决方案,但每次我都收到此错误。

4

0 回答 0