react-weui
react-weui copied to clipboard
使用react-weiui最新master分支,install之后start报错
错误同下(后来用0.4.1的版本 install 之后start 依然报错,如下)
ERROR in multi vendor Module not found: Error: Cannot resolve module 'react' in /Users/leo/Downloads/react-weui-0.4.1/example @ multi vendor
ERROR in ./~/react-dom/index.js Module not found: Error: Cannot resolve module 'react/lib/ReactDOM' in /Users/leo/Downloads/react-weui-0.4.1/node_modules/react-dom @ ./~/react-dom/index.js 3:17-46
ERROR in ./~/react-addons-css-transition-group/index.js Module not found: Error: Cannot resolve module 'react/lib/ReactCSSTransitionGroup' in /Users/leo/Downloads/react-weui-0.4.1/node_modules/react-addons-css-transition-group @ ./~/react-addons-css-transition-group/index.js 1:17-61
ERROR in ./example/app.js Module not found: Error: Cannot resolve module 'react' in /Users/leo/Downloads/react-weui-0.4.1/example @ ./example/app.js 17:13-29
最后用npm install react@^0.14.2 安装这个版本后start 就没有问题。 想问下,怎么样让master分支1.0.0可以install之后npm start起来?
我的npm把本4.2 是否要更改成1.1.3
我也出现这样的错误,请问解决了吗
becase use https://github.com/weui/react-weui/blob/master/package.json#L110-L113
the solution is:
npm install react react-dom
then will be ok.
仍然没有解决