Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

console not available #19

Open
kassens opened this issue Sep 2, 2013 · 0 comments
Open

console not available #19

kassens opened this issue Sep 2, 2013 · 0 comments
Labels

Comments

@kassens
Copy link
Contributor

kassens commented Sep 2, 2013

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant