CKGrafico / Cordova-Multiplatform-Template

Cordova template for native look in HTML5 Apps with Ionic an Angular
http://cordova-multiplatform-template.js.org
MIT License
190 stars 84 forks source link

Just get a white screen #46

Open jfoclpf opened 6 years ago

jfoclpf commented 6 years ago

Thank you for your template, seems nice!

Though when I run it in Android just get a white screen!

cordova run android --device

I did as you said

npm install 
gulp initialize 
gulp watch 
cordova build android

I already updated all my npm packages

And btw, I don't know if related, but when I do gulp watch I get some typescript errors

[01:18:58] Using gulpfile /home/jfolpf/formParkingViolation/formParkingViolationV2/gulpfile.js
[01:18:58] Starting 'watch'...
[01:18:58] Starting 'default'...
[01:18:58] Starting 'default:clean'...
[01:18:58] Finished 'default' after 40 ms
[01:18:58] Finished 'watch' after 57 ms
[01:18:58] Finished 'default:clean' after 69 ms
[01:18:58] Starting 'default:html'...
[01:18:58] Finished 'default:html' after 57 ms
[01:18:58] Starting 'default:scss'...
[01:18:59] Finished 'default:scss' after 992 ms
[01:18:59] Starting 'default:ts'...
typings/globals/node/index.d.ts(40,5): error TS1131: Property or signature expected.
typings/globals/node/index.d.ts(40,14): error TS1005: ';' expected.
typings/globals/node/index.d.ts(41,1): error TS1128: Declaration or statement expected.
typings/globals/node/index.d.ts(82,26): error TS1110: Type expected.
typings/globals/node/index.d.ts(285,40): error TS1110: Type expected.
typings/globals/node/index.d.ts(1846,37): error TS1110: Type expected.
typings/globals/node/index.d.ts(1863,18): error TS1005: '=' expected.
typings/globals/node/index.d.ts(1863,24): error TS1005: ';' expected.
typings/globals/node/index.d.ts(1869,18): error TS1005: '=' expected.
typings/globals/node/index.d.ts(1869,30): error TS1005: ';' expected.
typings/globals/node/index.d.ts(4052,33): error TS1110: Type expected.
[01:19:00] TypeScript: 11 syntax errors
[01:19:00] TypeScript: emit failed
[01:19:00] Finished 'default:ts' after 1.09 s
[01:19:00] Starting 'default:inject'...
[01:19:00] gulp-inject 2 files into index.html.
[01:19:00] Finished 'default:inject' after 19 ms
jfoclpf commented 6 years ago

FYI regarding the packages I have installed locally

root@toshiba:/home/jfolpf/formParkingViolation/formParkingViolationV2# npm list --depth=0
/home/jfolpf/formParkingViolation/formParkingViolationV2
├── angular@1.6.6
├── cordova-android@6.2.3
├── cordova-plugin-camera@2.4.1
├── cordova-plugin-compat@1.1.0
├── cordova-plugin-whitelist@1.3.2
├── event-stream@3.3.4
├── gulp@3.9.1
├── gulp-autoprefixer@3.1.1
├── gulp-bower@0.0.10
├── gulp-clean@0.3.2
├── gulp-clone@1.0.0
├── gulp-concat@2.6.1
├── gulp-inject@2.2.0
├── gulp-load-plugins@1.5.0
├── gulp-minify-css@1.2.4
├── gulp-minify-html@1.0.6
├── gulp-ng-annotate@1.1.0
├── gulp-sass@2.3.2
├── gulp-ts@0.3.0
├── gulp-tsc@1.3.2
├── gulp-tsd@0.0.4
├── gulp-typescript@2.14.1
├── gulp-uglify@1.5.4
├── gulp-usemin@0.3.28
├── gulp-watch@4.3.11
├── ionic@3.10.3
├── main-bower-files@2.13.1
├── ng@0.0.0-rc6
├── nodejs@0.0.0
├── require-dir@0.3.2
├── run-sequence@1.0.2
├── ts@0.0.0
├── tsc@1.20150623.0
├── typescript@2.5.2
└── typings@2.1.1
CKGrafico commented 6 years ago

You have errors on 'typings/globals/node/index.d.ts' that super strange :S I've some months without touching anything, there are some recommendations:

1.- npm cache clean and npm install -f 2.- remove all the ^ from package.json and install the exactly version 3.- check https://github.com/CKGrafico/Cordova-Multiplatform-Template/wiki/Frequently-Asked-Questions-(FAQ) 4.- downgrade you nodejs to v6