New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
按照reading项目 在自己项目中使用redux-saga 报regeneratorRuntime.mark错误 #91
Comments
和babel有关, |
上面是我package上的内容,我重新删过缓存也删除过node包重装,但都没用,您在使用saga出现过这个错误么,还是说您装过saga以后可以直接使用。 |
当然可以,reading里现在就有saga 你的 |
我把babel-preset-react-native 恢复到2.0.0,然后将node包删除,重新npm install,还是报上面说的错误 |
清下npm缓存。reading这么配置之后就没问题了。主要就是几个语法糖的不兼容。还有注意下node版本要>=6。可以参考这个issue:facebook/react-native#14838 |
谢谢您的引导,通过下面几步我解决了问题
|
其实直接改也可以,不过你问题解决了就行,哈哈 |
您好,我按照您的方式在项目中使用react-saga,出现如下错误,
undefined is not an object (evaluating regeneratorRuntime.mark) 。
我在网上查找资料说是因为babel无法转换ES6的函数生成器,我试了好几个网上的教程都不管用,但我运行你的项目就能正常运行起来。甚至我将你的package.json里面的内容复制过来重新npm install还是不行。
谢谢您的浏览,希望能得到您的指点。
The text was updated successfully, but these errors were encountered: