You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a bug in the React 16 beta server renderer, reported by @7rulnikin the React 16 beta thread, where the renderer throws an exception when style is included and NODE_ENV is production.
If you run NODE_ENV=production node index.js, you'll get:
TypeError: re is not a function
at /Users/v7rulnik/projects/kupibilet/internals/kupibilet.ru/node_modules/react-dom/cjs/react-dom-server.production.min.js:1:7774
at /Users/v7rulnik/projects/kupibilet/internals/kupibilet.ru/node_modules/fbjs/lib/memoizeStringOnly.js:23:32
at f (/Users/v7rulnik/projects/kupibilet/internals/kupibilet.ru/node_modules/react-dom/cjs/react-dom-server.production.min.js:1:2423)
at b (/Users/v7rulnik/projects/kupibilet/internals/kupibilet.ru/node_modules/react-dom/cjs/react-dom-server.production.min.js:1:3163)
at e.renderDOM (/Users/v7rulnik/projects/kupibilet/internals/kupibilet.ru/node_modules/react-dom/cjs/react-dom-server.production.min.js:1:9665)
at e.render (/Users/v7rulnik/projects/kupibilet/internals/kupibilet.ru/node_modules/react-dom/cjs/react-dom-server.production.min.js:1:8762)
at e.read (/Users/v7rulnik/projects/kupibilet/internals/kupibilet.ru/node_modules/react-dom/cjs/react-dom-server.production.min.js:1:8452)
at Object.T [as renderToString] (/Users/v7rulnik/projects/kupibilet/internals/kupibilet.ru/node_modules/react-dom/cjs/react-dom-server.production.min.js:1:4384)
at repl:1:13
at ContextifyScript.Script.runInThisContext (vm.js:44:33)
Weirdly, dev mode does not throw an error.
The text was updated successfully, but these errors were encountered:
There is a bug in the React 16 beta server renderer, reported by @7rulnik in the React 16 beta thread, where the renderer throws an exception when
style
is included and NODE_ENV isproduction
.Given this file:
If you run
NODE_ENV=production node index.js
, you'll get:Weirdly, dev mode does not throw an error.
The text was updated successfully, but these errors were encountered: