dvajs / dva-cli

The dva command line utility.
964 stars 156 forks source link

使用最新的cli创建项目,ie10出错 #153

Closed myGitZone closed 6 years ago

myGitZone commented 6 years ago

The \<AuthorizedRoute \/> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change AuthorizedRoute to extend React.Component instead.

感觉是安装babel插件升级问题,但是能力有限,谢谢

sorrycc commented 6 years ago

哪里有 AuthorizedRoute ?

myGitZone commented 6 years ago

您好,这个是用的Ant Design Pro的路由权限控制,我只是写了一个demo。早上我试了下,将dva-cli初始化的项目IndexPage改成继承PureComponent。在ie10也会报上面的错。是不是近期babel插件升级导致。谢谢

myGitZone commented 6 years ago

补充:然后我同样使用create-react-app创建的项目,安装dva。使用相同的代码进行测试,没有类似的问题。麻烦您了