Vue native "Element type is invalid" error after initialising the project

130 Views Asked by At

I just made a vue-native project using vue-native init henry-pager and then CDd into the directory and ran expo start to start the online builder gui thingy. When I try and run it in the web - it gives this error:

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`.

Please help, I just made this vue-native project and started it and don't know what to do now!

1

There are 1 best solutions below

0
AudioBubble On

Even if you use Expo, you should start the project by the following command: npm start instead of expo start

The steps that works for me.

Step 0: Install vue-native-cli

npm install --global vue-native-cli

Step 1: Install Expo CLI globally

$ npm install --global expo-cli

Step 2: Create a new project using the CLI’s init command

$ vue-native init <projectName>

Now cd into the newly created directory and start the development server.

$ cd <projectName>
$ npm start