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

New project does not run #23

Closed ChildishForces closed 5 years ago

ChildishForces commented 5 years ago

Receiving the following error:

Unable to resolve "../../App" from "node_modules/expo/AppEntry.js"
Failed building JavaScript bundle.
RishabhKarnad commented 5 years ago

Hi @ChildishForces.

Just for some more info, could you share the following with us?

mikkah commented 5 years ago

Hi @RishabhKarnad I'm facing the same error as stated by @ChildishForces

Content of package.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": "^34.0.1", "react": "16.8.3", "react-dom": "^16.8.6", "react-native": "https://github.com/expo/react-native/archive/sdk-34.0.0.tar.gz", "react-native-web": "^0.11.4", "vue-native-core": "0.1.0", "vue-native-helper": "0.1.0" }, "devDependencies": { "@babel/core": "^7.0.0-0", "babel-preset-expo": "^6.0.0", "vue-native-scripts": "0.1.0" }, "private": true }

This is a freshly generated project without any changes

ChildishForces commented 5 years ago

I'm identical to @mikkah's.

ChildishForces commented 5 years ago

Unfortunately this makes Vue Native unusable for me atm. :(

Syltis commented 5 years ago

There seems to be a bundle of proposed solutions out there for this, but none has been working in my case.

Syltis commented 5 years ago

There is a solution, see https://github.com/GeekyAnts/vue-native-core/issues/183

RishabhKarnad commented 5 years ago

As mentioned in https://github.com/GeekyAnts/vue-native-core/issues/183, the crash is caused by an issue in Expo

After making a new project, changes will be required in the app.json for the project to work.

The README.md will be updated to reflect this

ChildishForces commented 5 years ago

Not sure this is the best solution. Surely vue-native-cli should be generating with this solution, rather than a note in the readme, as what is the point in the CLI if not to scaffold a working Vue Native app?

Get Outlook for iOShttps://aka.ms/o0ukef


From: Rishabh Karnad notifications@github.com Sent: Tuesday, August 13, 2019 9:56:18 AM To: GeekyAnts/vue-native-cli vue-native-cli@noreply.github.com Cc: Chris Schofield chris.schofield@jaystack.com; Mention mention@noreply.github.com Subject: Re: [GeekyAnts/vue-native-cli] New project does not run (#23)

As mentioned in GeekyAnts/vue-native-core#183https://github.com/GeekyAnts/vue-native-core/issues/183, the crash is caused by an issue in Expo

After making a new project, changes will be required in the app.json for the project to work.

The README.md will be updated to reflect this

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/GeekyAnts/vue-native-cli/issues/23?email_source=notifications&email_token=AJSVR2XQ2YWN5YCLKISL7B3QEJSKFA5CNFSM4IJV7JU2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4E3ONI#issuecomment-520730421, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AJSVR2SWQEAF5AN24J5NHR3QEJSKFANCNFSM4IJV7JUQ.

RishabhKarnad commented 5 years ago

@ChildishForces I have created a PR #26 to address this. It should roll out with the next release.

ChildishForces commented 4 years ago

Awesome, much obliged!