ionic g page topic
此命令给出以下错误
[ERROR] Cannot perform generate for React projects.
Since you're using the React project type, this command won't work. The Ionic CLI doesn't know how to generate framework components for React projects.
最佳答案
错误消息很清楚,Ionic cli 不支持为使用 React 的项目生成新页面。这意味着您必须手动创建文件。
关于ionic-framework - 如何在 Ionic-react 中使用命令生成/添加新页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58008649/