我只是想开始设置我的第一个Reapp项目,但在第一个障碍时失败了。我得到一个空白屏幕,控制台错误为404 main.js not found。
这是我在reapp run -d
时遇到的错误:
Building with Webpack...
Webpack server on http://localhost:3011
Hash: e779570c713250e7b167
Version: webpack 1.12.9
Time: 823ms
Asset Size Chunks Chunk Names
main.js 21.6 kB 0 main
chunk {0} main.js (main) 52 bytes [rendered]
[0] multi main 52 bytes {0} [built] [3 errors]
ERROR in multi main
Module not found: Error: Cannot resolve module 'webpack-dev-server/client' in /Applications/MAMP/htdocs/kitchen-sink-master
@ multi main
ERROR in multi main
Module not found: Error: Cannot resolve module 'webpack/hot/only-dev-server' in /Applications/MAMP/htdocs/kitchen-sink-master
@ multi main
ERROR in multi main
Module not found: Error: Cannot resolve module 'babel-loader' in /Applications/MAMP/htdocs/kitchen-sink-master
@ multi main
webpack: bundle is now VALID.
这个问题非常相似:Reapp error running sample Kitchen sink app
所以我在项目中尝试了建议的npm install
,它给了我node_modules文件夹,但是给了我以下错误:
npm WARN EPEERINVALID react-dom@0.14.3 requires a peer of react@^0.14.3 but none was installed.
npm WARN EPEERINVALID react-tap-event-plugin@0.1.8 requires a peer of fbjs@^0.2.1 but none was installed.
npm WARN EPEERINVALID reapp-ui@0.12.70 requires a peer of react@0.14.x but none was installed.
npm WARN EPACKAGEJSON reapp-kitchen@1.0.1 No license field.
我已经在react网站上安装了npm install --save react react-dom babelify babel-preset-react
的更多位而无济于事,现在卡住了!
我认为这可能与我的反应版本有关,但我无法弄清楚如何找到我正在使用的版本。
答案 0 :(得分:5)
答案基本上是GitHub项目被破坏了,所以它不仅仅是我的环境......我正在做的一切正确。
<小时/>
修改:上述问题链接不再有效,而是项目https://github.com/reapp/reapp上有通知:
注意:需要贡献者,当前损坏,不打开机票打开PR http://www.reapp.io
<小时/> reapp的所有者不再使用它来代替其他项目。
我最终使用了http://touchstonejs.io/。
答案 1 :(得分:0)