<p dir="auto">I have the next error in production mode:<br>
undefinedrootReducer is not defined at Module. (..../dist7server.js:1:6328)</p>
<p dir="auto">the log is:</p>
<blockquote>
<p dir="auto">0 info it worked if it ends with ok<br>
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'start-production' ]<br>
2 info using npm@6.4.1<br>
3 info using node@v10.10.0<br>
4 verbose run-script [ 'prestart-production',<br>
4 verbose run-script   'start-production',<br>
4 verbose run-script   'poststart-production' ]<br>
5 info lifecycle react-initial@1.0.0<del>prestart-production: react-initial@1.0.0<br>
6 info lifecycle react-initial@1.0.0</del>start-production: react-initial@1.0.0<br>
7 verbose lifecycle react-initial@1.0.0<del>start-production: unsafe-perm in lifecycle true<br>
8 verbose lifecycle react-initial@1.0.0</del>start-production: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/shadito/Documentos/Sitios/react-initial/node_modules/.bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/us$<br>
9 verbose lifecycle react-initial@1.0.0<del>start-production: CWD: /home/shadito/Documentos/Sitios/react-initial<br>
10 silly lifecycle react-initial@1.0.0</del>start-production: Args: [ '-c',<br>
10 silly lifecycle   'npm run build &amp;&amp; NODE_ENV=production BABEL_ENV=production babel-node src/server' ]<br>
11 silly lifecycle react-initial@1.0.0<del>start-production: Returned: code: 1  signal: null<br>
12 info lifecycle react-initial@1.0.0</del>start-production: Failed to exec start-production script<br>
13 verbose stack Error: react-initial@1.0.0 start-production: <code class="notranslate">npm run build &amp;&amp; NODE_ENV=production BABEL_ENV=production babel-node src/server</code><br>
13 verbose stack Exit status 1<br>
13 verbose stack     at EventEmitter. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)<br>
13 verbose stack     at EventEmitter.emit (events.js:182:13)<br>
13 verbose stack     at ChildProcess. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)<br>
13 verbose stack     at ChildProcess.emit (events.js:182:13)<br>
13 verbose stack     at maybeClose (internal/child_process.js:962:16)<br>
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)<br>
14 verbose pkgid react-initial@1.0.0<br>
15 verbose cwd /home/shadito/Documentos/Sitios/react-initial<br>
16 verbose Linux 4.14.71-1-MANJARO<br>
17 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "start-production"<br>
18 verbose node v10.10.0<br>
19 verbose npm  v6.4.1<br>
20 error code ELIFECYCLE<br>
21 error errno 1<br>
22 error react-initial@1.0.0 start-production: <code class="notranslate">npm run build &amp;&amp; NODE_ENV=production BABEL_ENV=production babel-node src/server</code><br>
22 error Exit status 1<br>
23 error Failed at the react-initial@1.0.0 start-production script.<br>
23 error This is probably not a problem with npm. There is likely additional logging output above.<br>
24 verbose exit [ 1, true ]</p>
</blockquote>
<p dir="auto">my repository is: <a href="https://github.com/sh4d1t0/react-initial">https://github.com/sh4d1t0/react-initial</a><br>
I don't know what I'm doing wrong</p>
<p dir="auto">Bug:<br>
Third party modules like mscgenjs are not compatible with webpack v3.6.0  .Getting error Uncaught Error: define cannot be used indirect .<br>
{<br>
"name": "mscgenjs",<br>
"version": "1.9.0",<br>
"description": "Implementation of MscGen in JavaScript",<br>
"main": "index.js",<br>
"dependencies": {<br>
"amdefine": "1.0.1",<br>
"requirejs": "2.3.2"<br>
},</p>
<p dir="auto">Working fine older"version": "1.12.15".</p>
<p dir="auto">Environment:<br>
Nodejs :6.10.2<br>
Webpack : 3.6.0<br>
OS : Ubuntu</p>