- I create new project with following command:
ionic start MyApp blank --type=react
- I opened this project on VSCode
- I use Ionic’s VS Code extension to run a web server like photo below
- I got this from output window:
[Ionic] Running on Web...
> npx ionic serve --external
[ERROR] Invalid project type: react-vite (project config: .\ionic.config.json).
Project type must be one of: angular, react, vue, ionic-angular, ionic1, custom
Bad project type: undefined
[error] node "c:\Users\myuser\.vscode\extensions\ionic.ionic-1.34.1\node_modules\@ionic\cli\bin\ionic" serve --external Failed
[error] Web Failed.
This also happened with Project > Build and everything.
Here is my ionic info:
Ionic:
Ionic CLI : 7.0.0 (C:\Users\teerasejjiraphatchan\AppData\Roaming\npm\node_modules\@ionic\cli)
Ionic Framework : @ionic/react 7.0.0
Capacitor:
Capacitor CLI : 4.7.3
@capacitor/android : not installed
@capacitor/core : 4.7.3
@capacitor/ios : not installed
Utility:
cordova-res : not installed globally
native-run : 1.7.2
System:
NodeJS : v18.15.0 (C:\Program Files\nodejs\node.exe)
npm : 9.5.0
OS : Windows 10