Zuo

Results 11 comments of Zuo

出现同样的问题 `Uncaught Error: addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's `render` method, or you...

请问路由应该使用哪个版本呀

还缺了default.createClass, RouterContext里面有一段代码: `var RouterContext = _react2.default.createClass({` 报错` RouterContext.js:43 Uncaught TypeError: _react2.default.createClass is not a function at Object../node_modules/react-router/lib/RouterContext.js (RouterContext.js:43) at __webpack_require__ (bootstrap 5f88affe57815cffdd76:19) at Object../node_modules/react-router/lib/Router.js (Router.js:29) at __webpack_require__ (bootstrap 5f88affe57815cffdd76:19) at...

`按照教程的配置 import React from 'react' import ReactDOM from 'react-dom' class App extends React.Component { constructor () { super(...arguments) this.state = {} } render () { return ( ) } }...

你的component有super了吗 是component创建失败吧

在开发文档里有这么[一章](https://nervjs.github.io/docs/guides/switching-to-nerv.html)提到的是直接切换,我按照里面的说法修改代码的,所以这一章的介绍是需要完善或者是我的业务场景不适用? ![image](https://user-images.githubusercontent.com/15922193/41095683-ceb59c9c-6a84-11e8-8688-cbe6490cc06b.png)

尝试过了,ie8下的component兼容还是不可以(不带组件可以),报错: ![image](https://user-images.githubusercontent.com/15922193/41153704-2018dfc0-6b4a-11e8-987a-c926329da48b.png), loose后: ![image](https://user-images.githubusercontent.com/15922193/41153758-4bdc5b00-6b4a-11e8-996e-5c843c0511d8.png) 这里是配置 ![image](https://user-images.githubusercontent.com/15922193/41153727-3587ffc6-6b4a-11e8-91e2-8cedef952809.png) ![image](https://user-images.githubusercontent.com/15922193/41153772-543c8b4e-6b4a-11e8-9c6b-e9f480f4a660.png) ![image](https://user-images.githubusercontent.com/15922193/41153776-5b5f1644-6b4a-11e8-8059-9667b61744a4.png) 估计是component的创建过程打包的代码有问题

直接不使用react别名,使用nerv是一切都正常并且能支持ie8的