ReferenceError: __DEV__ is not defined #7426
Labels
Ran Commands
One of our bots successfully processed a command.
Resolution: Locked
This issue was locked by the bot.
As an experiment, I am trying to make isomorphic-relay work in react-native, but I stumble onto the error below as soon as I try to import a component into
renderOnServer.js
.This has been mentioned before here, but I am not sure how to fix it.
This crashes the entire graphql server.
I am on a Mac, versions:
[email protected]
react-relay @0.8.1
[email protected]
My
renderOnServer.js
now is minimal:in
server.js
:Full stack trace:
What am I doing wrong? It looks like a bug. If I set
var __DEV__ = true;
at the beginning of the file, the next error would be:The text was updated successfully, but these errors were encountered: