Gino
Gino

Reputation: 674

Missing ionic.project file

I just updated nodejs ionic and cordova. Create new ionic project as before:

ionic start myApp blank 

In terminal, go to myApp directory, and input:

ionic state

I got message:

You cannot run any state commands on a project that is not an Ionic project. Try adding an ionic.project file or running ionic start to get an application to save or restore (CLI v1.7.10)

My system information:

Question: Where ionic.project file, I don't remember there was this file in project before. How to add ionic.project file?

How do I find this problem? Because I check out source from git, I try to use ionic state restore command to restore application for building. But I got same message, missing ioinc.project. So I create a new ionic project to find reason, but I'm still confused.

If use

ionic start

You will got

Invalid command (CLI v1.7.10)

Of course, there is not directory argument for this command. If you give directory as ./, this command only create and overwrite all project file.

screen shot enter image description here

Upvotes: 12

Views: 13391

Answers (4)

Qasim Nadeem
Qasim Nadeem

Reputation: 607

Most simple/easy solution to this problem to install a chrome extension named CORS. and everything will work perfectly.

Upvotes: 0

Jagdish Adusumalli
Jagdish Adusumalli

Reputation: 519

I was facing the same issue. just run the command

ionic serve

ionic.project file gets auto generated

EDIT

ionic.project is replace by ionic.config.json. So you should change in ionic.config.json

Upvotes: 18

Arindam
Arindam

Reputation: 537

The new name of this file is ionic.config.json

Upvotes: 32

roger
roger

Reputation: 1263

If you are happened to use ionic@beta, it won't install it until you downgrade it to ionic V1 then "ionic setup sass" or "ionic serve".

Upvotes: 0

Related Questions