react-web icon indicating copy to clipboard operation
react-web copied to clipboard

报错,查看原因是 node版本高, 有不降node 版本的解决方案吗,谢谢

Open shijinwu opened this issue 8 years ago • 5 comments

报错,查看原因是 node版本高, 有不降node 版本的解决方案吗,谢谢

shijinwu avatar Jun 19 '17 01:06 shijinwu

我一直在 node@7 里使用,改 import * from 'react-web'import * from 'react-web/lib' 即可,或者在webpack里配置 alias: {"react-native": "react-web/lib"}

cpunion avatar Jun 19 '17 02:06 cpunion

非常感谢

shijinwu avatar Jun 19 '17 02:06 shijinwu

用了您的方法还是会 报这个错误: Path must be a string. Received undefined

shijinwu avatar Jun 20 '17 01:06 shijinwu

https://github.com/taobaofed/react-web/pull/257

fov42550564 avatar Jun 21 '17 08:06 fov42550564

再用 @fov42550564 的方法可以解决,刚测试过了。我的项目是自己写的 webpack 配置所以没遇到问题。

cpunion avatar Jun 23 '17 15:06 cpunion