2017-07-16 76 views
0

做一个反应教程节点 - 的WebPack:无法编译

npm start 

允许在本地主机将被显示在浏览器应用程序页面:8080

但不断显示错误在终端控制台:

webpack: Compiling... 

ERROR in this is not a typed array. 
Child html-webpack-plugin for "index.html": 

webpack: Failed to compile. 

节点v4.6.2

回答

0

看来,一个运重刑是从节点4.2.6升级到节点在6.0.0

结果:

$ NPM启动

> [email protected] start /home/durrantm/Dropbox/92_2017/work/code/javascript/react/react_speed_book/react-speed-book 
> NODE_ENV=development webpack-dev-server --inline 

http://localhost:8080/ 
webpack result is served from/
content is served from /home/durrantm/Dropbox/92_2017/work/code/javascript/react/react_speed_book/react-speed-book 
404s will fallback to /index.html 
Child html-webpack-plugin for "index.html": 

webpack: Compiled successfully.