我正在使用@ionic/react
它来构建一个 Android 应用程序。一切正常,但我似乎无法构建它的 android 版本。
命令
$ ionic build
$ ionic serve
$ ionic integrations enable capacitor
$ ionic cap add android
$ ionic cap open android
都给我错误信息:
[ERROR] Invalid project type: react (project config: .\ionic.config.json).
Project type must be one of: angular, ionic-angular, ionic1, custom
我是否正确解释了@ionic/react
尚未完全支持的内容?
我很困惑,以为我@ionic/react
之前为android构建了一个-app。
一直在关注这个文档:https ://ionicframework.com/docs/react/your-first-app
我的ionic.config.json
:
{
"name": "Prototype",
"integrations": {},
"type": "react"
}
来自的重要依赖项package.json
:
"dependencies": {
"@ionic/react": "^4.11.0",
"@ionic/react-router": "^4.11.0",
"@react-google-maps/api": "1.7.12",
"@types/jest": "^24.0.18",
"@types/node": "^12.7.12",
"@types/react": "^16.9.5",
"@types/react-dom": "^16.9.1",
"@types/react-router": "^5.1.1",
"@types/react-router-dom": "^5.1.0",
"ionic": "4.12.0",
"ionicons": "^4.6.3",
"react": "^16.10.2",
"react-dom": "^16.10.2",
"react-router": "^5.1.0",
"react-router-dom": "^5.1.0",
"react-scripts": "3.2.0",
"typescript": "3.6.3"
},