cmsd2 / rust-iron-react-webpack

Example webapp using Rust + Iron + React + Webpack
62 stars 5 forks source link

Doesn't work (Connection refused) #3

Open Boscop opened 7 years ago

Boscop commented 7 years ago

When I start iron-react-webpack.exe and then do npm start, and go to localhost:3000 in the browser, it doesn't show anything (Connection refused), but in TCPView I see that node.exe is listening at 3000. (I allowed both iron-react-webpack.exe and node.exe in the Windows firewall.) Btw, I get the following output:

> iron-react-webpack@0.0.1 start D:\3rdparty\rust-iron-react-webpack\web
> node server.js

[HPM] Proxy created: /api  ->  http://localhost:8080
Listening at http://localhost:3000
webpack built 0d89b2c528a3a72a283e in 507ms
Hash: 0d89b2c528a3a72a283e
Version: webpack 1.14.0
Time: 507ms
    Asset    Size  Chunks       Chunk Names
bundle.js  241 kB       0       main
chunk    {0} bundle.js (main) 74.3 kB [rendered]
    [0] multi main 40 bytes {0} [built] [1 error]
    [1] (webpack)-hot-middleware/client.js 5.07 kB {0} [built]
    [2] (webpack)/buildin/module.js 251 bytes {0} [built]
    [3] ./~/strip-ansi/index.js 161 bytes {0} [built]
    [4] ./~/ansi-regex/index.js 135 bytes {0} [built]
    [5] (webpack)-hot-middleware/client-overlay.js 1.74 kB {0} [built]
    [6] ./~/ansi-html/index.js 4.26 kB {0} [built]
    [7] ./~/html-entities/index.js 231 bytes {0} [built]
    [8] ./~/html-entities/lib/xml-entities.js 2.98 kB {0} [built]
    [9] ./~/html-entities/lib/html4-entities.js 6.57 kB {0} [built]
   [10] ./~/html-entities/lib/html5-entities.js 49 kB {0} [built]
   [11] (webpack)-hot-middleware/process-update.js 3.88 kB {0} [built]

ERROR in Cannot find module 'babel-core'
 @ multi main
Child html-webpack-plugin for "index.html":
         Asset    Size  Chunks       Chunk Names
    index.html  577 kB       0
    chunk    {0} index.html 540 kB [rendered]
        [0] ./~/html-webpack-plugin/lib/loader.js!./assets/index-template.html 4
95 bytes {0} [built]
        [1] ./~/lodash/lodash.js 540 kB {0} [built]
        [2] (webpack)/buildin/module.js 251 bytes {0} [built]
sorenhoyer commented 7 years ago

npm install babel-core babel-loader --save-dev