0

I have created a blank cordova app, but the problem is that the project is empty, it only has dependencies. Can any one help me?

look at the image here, please

Phonolog
  • 6,321
  • 3
  • 36
  • 64
fateme
  • 49
  • 6

2 Answers2

0

Not sure what Visual Studio Code did here, but you can always create and adapt a Hello World app by running cordova create hello com.example.hello HelloWorld. Make sure you have npm installed, then run

npm install -g cordova
cd <your new project-folder>
cordova create hello com.example.hello HelloWorld
geoM
  • 447
  • 4
  • 12
  • thanks for answering, the hello world project created, but the problem is still remaining. when i build the project which i have created in visual studio i got this error message `The target "PreComputeCompileTypeScript" does not exist in the project` @geoM – fateme Feb 09 '18 at 15:00
0

Try to use Visual Studio as code editor, not builder.

Building project is only need for compile apk for device (android).

cordova build android

No need to build simple project with index.html and JS files while developing. Just run:

cordova platform add browser
cordova run browser

PS: try Ionic-framework it's based on cordova.

pavelety
  • 746
  • 6
  • 8