masteroy
masteroy
@yuche 我升级了还是不行,这是我的依赖版本: ``` $ yarn list --pattern "nerv|tarojs" yarn list v1.6.0 ├─ @tarojs/[email protected] ├─ @tarojs/[email protected] ├─ @tarojs/[email protected] ├─ @tarojs/[email protected] ├─ @tarojs/[email protected] ├─ @tarojs/[email protected] ├─ @tarojs/[email protected] ├─ @tarojs/[email protected] ├─ @tarojs/[email protected] ├─...
@yuche 感谢。顺便问一下,package什么时候能build出来是使用呢?
@yuche 我clone了`Nerv`下来build了最新的包,然后替换现有包再跑,发现还是同样的错误,是我build的姿势不对?
@yuche 我更新到新版本的taro和nerv相关的package,问题还是没解决,还是报同样的错误 ``` invalid hooks call: hooks can only be called in a stateless component. ``` 这是我的依赖版本 ``` $ yarn list --pattern "nerv|tarojs" yarn list v1.6.0 ├─ @tarojs/[email protected] ├─ @tarojs/[email protected]...
@Chen-jj 好的。还有想请教一下,一个子组件即使在父组件中控制不render,子组件还是会用defaultProps render出来吗?所以在子组件里还得多一层控制?
@luckyadam 这是Repo: [taro-unit-test](https://github.com/masteroy/taro-unit-test/tree/master)
@yuche 在我的demo里面已经把react-is alias 到nerv-is-commonjs了https://github.com/masteroy/taro-unit-test/blob/master/jest.config.js#L14 但还是一样的错误
我觉得你可以参考一下这个: https://github.com/NervJS/taro/issues/3343
+1