0

我使用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)

我的 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 与 react-boilerplate 一起使用?

4

0 回答 0