title: ReactDOM RSS renderToString production error
body: <p>I created new boilerplate for react16.</p>
  
  <p><a href="https://github.com/jasonvillalon/react16-boilerplate" rel="noreferrer">https://github.com/jasonvillalon/react16-boilerplate</a></p>
  
  <p>its working when running in development using: </p>
  
  <pre><code>npm start
  npm start:webpack
  </code></pre>
  
  <p>but when running in production it throws error on renderToString</p>
  
  <pre><code>NODE_ENV=production npm start
  </code></pre>
  
  <p>the webpack succeeds without error but when rendering the page the error occur:</p>
  
  <pre><code>ERROR: TypeError: Cannot set property 'getCurrentStack' of undefined
  at setCurrentDebugStack (webpack:///./node_modules/react-dom/cjs/react-dom-server.node.development.js?:1816:48)
  at ReactDOMServerRenderer.read (webpack:///./node_modules/react-dom/cjs/react-dom-server.node.development.js?:2225:13)
  at renderToString (webpack:///./node_modules/react-dom/cjs/react-dom-server.node.development.js?:2494:29)
  at _callee$ (webpack:///./src/server.jsx?:66:49)
  at tryCatch (/Users/jasonvillalon/Documents/fun-projects/from-scratch/node_modules/babel-polyfill/node_modules/regenerator-runtime/runtime.js:65:40)
  at Generator.invoke [as _invoke] (/Users/jasonvillalon/Documents/fun-projects/from-scratch/node_modules/babel-polyfill/node_modules/regenerator-runtime/runtime.js:303:22)
  at Generator.prototype.(anonymous function) [as next] (/Users/jasonvillalon/Documents/fun-projects/from-scratch/node_modules/babel-polyfill/node_modules/regenerator-runtime/runtime.js:117:21)
  at step (webpack:///./src/server.jsx?:27:191)
  at eval (webpack:///./src/server.jsx?:27:437)
  at new Promise (&lt;anonymous&gt;)
  </code></pre>
  
  <p>any body have an idea what is going on?</p>
  
  <p>Best Regards,
  Jason</p>