Hi, after first install of ionic with vue and followed instructions from " Build your way with TypeScript or JavaScript" I got an error to compile from VSC.
Because resolving this problem was too long and complicated, I prefer uninstall and reinstall Ionic project.
After that get this error : Bad project type: undefined
and this too : Could not determine project type (project config: ./ionic.config.json)
I tried everything on Ionic, GitHub or stack overflow .
For each command line I get this error.
Currently I have no more ionic project. Only Ionic CLI, Cordova and node
Before I tried to create a new ionic.config.json file.
Could you please help me to resolve this problem ?
% ionic -v
[WARN] Could not determine project type (project config: ./ionic.config.json).
- For @ionic/angular projects, make sure @ionic/angular is listed as a
dependency in package.json.
- For Ionic 2/3 projects, make sure ionic-angular is listed as a
dependency in package.json.
- For Ionic 1 projects, make sure ionic is listed as a dependency in
bower.json.
Alternatively, set type attribute in ./ionic.config.json to one of:
angular, react, vue, ionic-angular, ionic1, custom.
If the Ionic CLI does not know what type of project this is, ionic build,
ionic serve, and other commands may not work. You can use the custom
project type if that's okay.
Sorry, what I meant was there is another ionic.config.json file somewhere on your machine that ionic start is picking up.
It looks like there is a bad ionic.config.json file at /Users/NameUser/ionic.config.json. Can you delete that file then try running DEBUG=* ionic start again?
If you are running into a Bad project type: undefined error, then you likely have a bad ionic.config.json file somewhere in your project path that ionic start is picking up. Removing this configuration file should fix the issue:
Run DEBUG=* ionic start which will show you where the bad config file is: