React-boilerplate + react-toolbox:无法解析' file'或者'目录' 。/样式

时间:2016-05-26 20:08:04

标签: reactjs webpack styles react-redux react-toolbox

我使用react-boilerplate作为我项目的基础,因为它支持Redux。

当我访问我的应用时,我在终端中收到以下错误:

ERROR in ./~/react-toolbox/lib/button/Button.js
Module not found: Error: Can't resolve './style' in 'E:\ReactLaravel\Boilerplate\react-boilerplate-master\node_modules\react-toolbox\lib\button'
 @ ./~/react-toolbox/lib/button/Button.js 28:13-31

ERROR in ./~/react-toolbox/lib/button/IconButton.js
Module not found: Error: Can't resolve './style' in 'E:\ReactLaravel\Boilerplate\react-boilerplate-master\node_modules\react-toolbox\lib\button'
 @ ./~/react-toolbox/lib/button/IconButton.js 28:13-31

ERROR in ./~/react-toolbox/lib/ripple/Ripple.js
Module not found: Error: Can't resolve './style' in 'E:\ReactLaravel\Boilerplate\react-boilerplate-master\node_modules\react-toolbox\lib\ripple'
 @ ./~/react-toolbox/lib/ripple/Ripple.js 23:13-31
Child html-webpack-plugin for "index.html":
         Asset     Size  Chunks       Chunk Names
    index.html  20.5 kB       0
    chunk    {0} index.html 1.03 kB [rendered]
        [0] ./~/html-webpack-plugin/lib/loader.js!./app/index.html 1.03 kB {0} [built]
Error: no such file or directory
    at MemoryFileSystem.readFileSync (E:\ReactLaravel\Boilerplate\react-boilerplate-master\node_modules\webpack-dev-middleware\node_modules\memory-fs\lib\MemoryFileSystem.js:107:10)
    at app.get (E:\ReactLaravel\Boilerplate\react-boilerplate-master\server\middlewares\frontendMiddleware.js:25:21)
    at Layer.handle [as handle_request] (E:\ReactLaravel\Boilerplate\react-boilerplate-master\node_modules\express\lib\router\layer.js:95:5)
    at next (E:\ReactLaravel\Boilerplate\react-boilerplate-master\node_modules\express\lib\router\route.js:131:13)
    at Route.dispatch (E:\ReactLaravel\Boilerplate\react-boilerplate-master\node_modules\express\lib\router\route.js:112:3)
    at Layer.handle [as handle_request] (E:\ReactLaravel\Boilerplate\react-boilerplate-master\node_modules\express\lib\router\layer.js:95:5)
    at E:\ReactLaravel\Boilerplate\react-boilerplate-master\node_modules\express\lib\router\index.js:277:22
    at param (E:\ReactLaravel\Boilerplate\react-boilerplate-master\node_modules\express\lib\router\index.js:349:14)
    at param (E:\ReactLaravel\Boilerplate\react-boilerplate-master\node_modules\express\lib\router\index.js:365:14)
    at Function.process_params (E:\ReactLaravel\Boilerplate\react-boilerplate-master\node_modules\express\lib\router\index.js:410:3)
    at next (E:\ReactLaravel\Boilerplate\react-boilerplate-master\node_modules\express\lib\router\index.js:271:10)
    at middleware (E:\ReactLaravel\Boilerplate\react-boilerplate-master\node_modules\webpack-hot-middleware\middleware.js:39:48)
    at Layer.handle [as handle_request] (E:\ReactLaravel\Boilerplate\react-boilerplate-master\node_modules\express\lib\router\layer.js:95:5)
    at trim_prefix (E:\ReactLaravel\Boilerplate\react-boilerplate-master\node_modules\express\lib\router\index.js:312:13)
    at E:\ReactLaravel\Boilerplate\react-boilerplate-master\node_modules\express\lib\router\index.js:280:7
    at Function.process_params (E:\ReactLaravel\Boilerplate\react-boilerplate-master\node_modules\express\lib\router\index.js:330:12)

My App / containers / MyContainer / index.js这是应用程序的这一部分的主要条目: https://github.com/react-toolbox/react-toolbox/files/285221/index.zip

我的package.json: https://github.com/react-toolbox/react-toolbox/files/285226/package.json.zip

我认为该文件相当于此样板模板中的webpack.config.js: https://github.com/react-toolbox/react-toolbox/files/285227/webpack.test.babel.zip

我解决这个错误并将react-toolbox放在一起反应 - 样板怎么冷?

0 个答案:

没有答案