GeekyAnts / vue-native-cli

Write Native Mobile Apps using Vue. Vue Native is a wrapper around React Native APIs
92 stars 21 forks source link

App.js and App.vue are both present in projects created freshly on Windows #29

Closed RishabhKarnad closed 4 years ago

RishabhKarnad commented 4 years ago

On creating a new project with

vue-native init <projectName>

the generated project directory contains both an App.js file as well as an App.vue file.

Expected behaviour

On running the above command, a project directory containing the following structure should be created

<projectName>
  |_ .expo-shared/
  |_ .git/
  |_ assets/
  |_ node_modules/
  |_ .gitignore
  |_ .watchmanconfig
  |_ app.json
  |_ App.vue
  |_ babel.config.js
  |_ metro.config.js
  |_ package.json
  |_ vueTransformerPlugin.js
  |_ yarn.lock

On running

npm start

the contents of the App.vue file should be rendered in the simulator.

Observed behaviour

On Windows, after creation, the project directory also contains an App.js file. On starting the project, the contents of this file are rendered instead and the App.vue file is ignored.

Vue Naitve CLI version used

v0.1.1

RishabhKarnad commented 4 years ago

The issue is described here by @YannickSilva

This screenshot of the generated directory was provided there

64984735-4f27c080-d8bb-11e9-9884-ff240a15abfb

jonnycraze commented 4 years ago

I'm experiencing the same issue, what is the ETA on a release fix, or is there a work around in the mean time?

orelinde commented 4 years ago

Hi @jonnycraze I got it working by:

  1. Remove App.js
  2. Execute: npm install vue-native-scripts --save-dev npm install vue-native-core vue-native-helper --save npm install
  3. Run as normal: react-native run-android
tjharrisonuk commented 4 years ago

Didn't work for me.

karoletrych commented 4 years ago

Doesn't work for me either.

bbalkonsky commented 4 years ago

and for me

kothanzaw commented 4 years ago

also not working for me