facebookarchive / react-page

Easy Application Development with React JavaScript
Apache License 2.0
797 stars 72 forks source link

console not available #19

Open kassens opened 11 years ago

kassens commented 11 years ago

When running react-page with --dev=true, the console warning about a missing key on a react component turns into a page fatal because console is not available in the sandbox. Not sure what the right solution is here, should node's console object be forwarded into the sandbox?

ReferenceError: console is not defined
at validateExplicitKey (./node_modules/react-tools/src/core/ReactComponent.js:103:3)
at validateChildKeys (./node_modules/react-tools/src/core/ReactComponent.js:119:9)
at ReactComponent.Mixin.merge.construct (./node_modules/react-tools/src/core/ReactComponent.js:308:11)
at Object.ConvenienceConstructor [as div] (./node_modules/react-tools/src/core/ReactDOM.js:48:24)
...

Similar to #13.