ionic-team / vscode-extension

15 stars 0 forks source link

Invalid project type: angular-standalone (project config: .\ionic.config.json). #119

Closed angelofan closed 1 year ago

angelofan commented 1 year ago

After using vscode-extension to generate the project, using ionic g page new to generate the page will throw an error:

Invalid project type: angular-standalone (project config: .\ionic.config.json).

Does ionic-cli not recognize angular-standalone? ionic.config.json

{
   "name": "ionic-toast-color-test",
   "integrations": {
     "capacitor": {}
   },
   "type": "angular-standalone"
}

After manually changing angular-standalone to angular, everything works fine.

angelofan commented 1 year ago

I got this error last time I ran ionic info.

https://github.com/ionic-team/ionic-framework/issues/27567#issue-1731444883

dtarnawsky commented 1 year ago

Hey @angelofan ,

This error will occur if you are using Ionic CLI version 6 but run it against a project that was created with Ionic CLI version 7.

You'll need to update your CLI version using:

npm install -g @ionic/cli@7

You can also have the CLI installed locally with your project (and remove it globally). This allows you to have projects that are using different versions of the CLI.

Finally, you can find the version of the CLI you have installed by running ionic -v at the terminal.