node.js - Webpack hot reloading ENOENT no such file or directory -


i'm working ubuntu on windows. cloned fresh react-redux-starter-kit. there same problem react-redux-universal-hot-example , own implementations.

after npm install started server npm start , page worked perfectly.

as edit file following error:

unhandled rejection error: module build failed: error: enoent: no such file or directory, open '/mnt/c/users/xxx/webstormprojects/react-redux-starter-kit/src/main.js'   @ error (native)   @ compiler.<anonymous> (/mnt/c/users/xxx/webstormprojects/react-redux-starter-kit/build/webpack.config.js:69:15)   @ compiler.applyplugins (/mnt/c/users/xxx/webstormprojects/react-redux-starter-kit/node_modules/tapable/lib/tapable.js:26:37)   @ watching._done (/mnt/c/users/xxx/webstormprojects/react-redux-starter-kit/node_modules/webpack/lib/compiler.js:78:17)   @ watching.<anonymous> (/mnt/c/users/xxx/webstormprojects/react-redux-starter-kit/node_modules/webpack/lib/compiler.js:51:17)   @ /mnt/c/users/xxx/webstormprojects/react-redux-starter-kit/node_modules/webpack/lib/compiler.js:403:12   @ compiler.next (/mnt/c/users/xxx/webstormprojects/react-redux-starter-kit/node_modules/tapable/lib/tapable.js:67:11)   @ compiler.<anonymous> (/mnt/c/users/xxx/webstormprojects/react-redux-starter-kit/node_modules/webpack/lib/cacheplugin.js:40:4)   @ compiler.applypluginsasync (/mnt/c/users/xxx/webstormprojects/react-redux-starter-kit/node_modules/tapable/lib/tapable.js:71:13)   @ compiler.<anonymous> (/mnt/c/users/xxx/webstormprojects/react-redux-starter-kit/node_modules/webpack/lib/compiler.js:400:9)   @ compilation.<anonymous> (/mnt/c/users/xxx/webstormprojects/react-redux-starter-kit/node_modules/webpack/lib/compilation.js:577:13)   @ compilation.applypluginsasync (/mnt/c/users/xxx/webstormprojects/react-redux-starter-kit/node_modules/tapable/lib/tapable.js:60:69)   @ compilation.<anonymous> (/mnt/c/users/xxx/webstormprojects/react-redux-starter-kit/node_modules/webpack/lib/compilation.js:572:10)   @ compilation.applypluginsasync (/mnt/c/users/xxx/webstormprojects/react-redux-starter-kit/node_modules/tapable/lib/tapable.js:60:69)   @ compilation.<anonymous> (/mnt/c/users/xxx/webstormprojects/react-redux-starter-kit/node_modules/webpack/lib/compilation.js:567:9)   @ compilation.applypluginsasync (/mnt/c/users/xxx/webstormprojects/react-redux-starter-kit/node_modules/tapable/lib/tapable.js:60:69)   @ compilation.<anonymous> (/mnt/c/users/xxx/webstormprojects/react-redux-starter-kit/node_modules/webpack/lib/compilation.js:563:8) 

the file edited file not found (main.js) file exists. i'm sure there other people same problem. have fix?

i'm using latest windows insider build 14965 latest ubuntu problem in previous ones.

found workaround. have add:

watchoptions: {   aggregatetimeout: 300,   poll: 1000 } 

to webpack-dev-server because wsl doesn't support listening events. works ruby , others config.

see here.

i think microsoft fix day.


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -