Closed hrasoa closed 7 years ago
Closing as this is related to webpack dev server configuration.
@hrasoa were you able to resolve it? I am facing the same problem with webpack-dev-middleware.
@Pranab16 I don't remember, but as what I see in code looks like the server config is wrong, it should compile only one file, not different chunks:
Child server:
chunk {0} post-page.js (post-page) 5.57 kB {2} [rendered]
chunk {1} about.js (about) 610 bytes {2} [rendered]
chunk {2} main.js (main) 1.21 MB [entry] [rendered]
webpack: Compiled successfully.
should render only:
Child server:
chunk {0} server.js
webpack: Compiled successfully.
Works on client, but cannot find module on server side:
.babelrc
webpack.config
AsyncAbout/index.js
AsyncAbout/About.js
Compilation output:
Files are served with dev-server so they are not written to disk.
After navigating to http://localhost:3000/about, got this error on the server side: