Accepted answer

i had the exact same problem today. after adding dynamic-import-node to the plugins of my .babelrc the server worked, but webpack wasn't creating the chunks. i then removed it again from my .babelrc and moved it to my server script with @babel/register. my server script now looks like this:

require( "@babel/register" )({
    presets: ["@babel/preset-env", "@babel/preset-react"],
    plugins: ["dynamic-import-node"]
require( "./src/server" );

i hope this helps ;)

Related Query

More Query from same tag