open-coronavirus / open-coronavirus

Open Coronavirus
https://opencoronavirus.app
MIT License
337 stars 74 forks source link

Errores tratando de correr app-citizen en XCode #30

Open enzymevc opened 4 years ago

enzymevc commented 4 years ago

Hola, gracias por este proyecto, es de mucha utilidad! Estoy tratando de correr el app iOS en XCode y estoy teniendo los siguientes errores. Me podran ayudar, por favor?

ERROR: Required native-bridge.js file in Capacitor not found. Bridge will not function! ⚡️ ❌ Capacitor: FATAL ERROR ⚡️ ❌ Error was: The operation couldn’t be completed. (Capacitor.BridgeError error 0.) ⚡️ ❌ Unable to export required Bridge JavaScript. Bridge will not function. ⚡️ ❌ You should run "npx capacitor copy" to ensure the Bridge JS is added to your project. ⚡️ ❌ Please verify your installation or file an issue Loading network plugin 2020-03-30 13:22:24.326188-0300 Open Coronavirus[48509:9516116] CAPKeyboard: resize mode - native ⚡️ ERROR: Unable to load public/index.html ⚡️ This file is the root of your web app and must exist before ⚡️ Capacitor can run. Ensure you've run capacitor copy at least ⚡️ or, if embedding, that this directory exists as a resource directory.

Al correr "npx capacitor copy" en /open-coronavirus/app-citizen me dice que no encuentra el directorio www.

Muchas gracias!

rubentnf commented 4 years ago

Hola, yo he seguido estos pasos y he conseguido hacer que funcione en mi terminal.

He eliminado previamente la carpeta ios con el comando rm -Rf ios, seguidamente:

Ya te debería dejar lanzar la app en tu terminal o emulador

Saludos

enzymevc commented 4 years ago

Muchas gracias, Ruben.

el comando "npm run-script build" esta fallando:

Generating ES5 bundles for differential loading... An unhandled exception occurred: [BABEL] /Users/juangargiulo/Dropbox/coronavirus/open-coronavirus-master/app-citizen/www/21-es2015.js: Could not find plugin "proposal-numeric-separator". Ensure there is an entry in ./available-plugins.js for it. (While processing: "/Users/juangargiulo/Dropbox/coronavirus/open-coronavirus-master/app-citizen/node_modules/@babel/preset-env/lib/index.js") See "/private/var/folders/rj/gzlj7qx96rjdvqlxjxpky8s80000gp/T/ng-XNw7if/angular-errors.log" for further details. npm ERR! code ELIFECYCLE npm ERR! syscall spawn npm ERR! file sh npm ERR! errno ENOENT npm ERR! open-coronavirus@0.0.1 build: ng build npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the open-coronavirus@0.0.1 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Juan

On Mar 30, 2020, at 4:40 PM, Rubén Afonso notifications@github.com wrote:

Hola, yo he seguido estos pasos y he conseguido hacer que funcione en mi terminal.

He eliminado previamente la carpeta ios con el comando rm -Rf ios, seguidamente:

npm run-script build (este comando te generará la carpeta www que te avisa que no encuentra en tu caso) npx cap add ios npx cap open ios Ya te debería dejar lanzar la app en tu terminal o emulador

Saludos

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/open-coronavirus/open-coronavirus/issues/30#issuecomment-606204542, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQZMY57AHLO7RXR2BO4RP3RKDYUDANCNFSM4LWXJ7SA.

rubentnf commented 4 years ago

¿Puedes probar a eliminar la carpeta www y hacer los pasos de nuevo?

Hola Juan, he seguido estos pasos y me han funcionado, pruébalos y me comentas:

Aquí deberías poder ya lanzar el proyecto con Xcode

enzymevc commented 4 years ago

Probe eso y el mismo error

On Mar 30, 2020, at 6:03 PM, Rubén Afonso notifications@github.com wrote:

¿Puedes probar a eliminar la carpeta www y hacer los pasos de nuevo?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/open-coronavirus/open-coronavirus/issues/30#issuecomment-606248559, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQZMY7WSOFFFTH63CPAV43RKECLTANCNFSM4LWXJ7SA.

rubentnf commented 4 years ago

Probe eso y el mismo error

Más o menos en este enlace de Stackoverflow comentan la solución que te adjunté: https://stackoverflow.com/questions/60787334/ionic-android-build-fails-with-could-not-find-plugin-proposal-numeric-separator

danycode commented 4 years ago

Hi my name is Daniel I am from Cerrito Valle del Cauca Colombia and today was confirm the first Covi + positive and in the other hand we have a really bad hospital facilities, so I would like to know if you may help us to set up this app for our town so the scenario in not worst Regards,