taofed / react-web

A framework for building web apps with React Native compatible API.
Other
3.36k stars 448 forks source link

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

Open shijinwu opened 7 years ago

shijinwu commented 7 years ago

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

cpunion commented 7 years ago

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

shijinwu commented 7 years ago

非常感谢

shijinwu commented 7 years ago

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

fov42550564 commented 7 years ago

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

cpunion commented 7 years ago

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