{"action":"opened","issue":{"url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-JS/issues/383","repository_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-JS","labels_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-JS/issues/383/labels{/name}","comments_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-JS/issues/383/comments","events_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-JS/issues/383/events","html_url":"https://github.com/ParsePlatform/Parse-SDK-JS/issues/383","id":194881710,"number":383,"title":"Prevent \"require('parse/node') instead\" warning on server side rendered applications.","user":{"login":"fdidron","id":1848786,"avatar_url":"https://avatars.githubusercontent.com/u/1848786?v=3","gravatar_id":"","url":"https://api.github.com/users/fdidron","html_url":"https://github.com/fdidron","followers_url":"https://api.github.com/users/fdidron/followers","following_url":"https://api.github.com/users/fdidron/following{/other_user}","gists_url":"https://api.github.com/users/fdidron/gists{/gist_id}","starred_url":"https://api.github.com/users/fdidron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fdidron/subscriptions","organizations_url":"https://api.github.com/users/fdidron/orgs","repos_url":"https://api.github.com/users/fdidron/repos","events_url":"https://api.github.com/users/fdidron/events{/privacy}","received_events_url":"https://api.github.com/users/fdidron/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-12T03:10:19Z","updated_at":"2016-12-12T03:10:19Z","closed_at":null,"body":"Hi,\r\n\r\nI'm currently building a React application using Parse as the backend. The application is server side rendered, so on the initial render (happening on the server side) the process logs the following warning (as per this [line](https://github.com/ParsePlatform/Parse-SDK-JS/blob/2956decbe54f2cf6d2c17ff1b4d8db98327410d6/src/Parse.js#L33)):\r\n```\r\nIt looks like you're using the browser version of the SDK in a node.js environment. You should require('parse/node') instead.\r\n```\r\nOne solution to prevent that would be to check in the same line if a process.env variable exists, for example `process.env.SSR !== true`.\r\nHappy to send a PR if this makes sense.\r\n\r\n\r\n"}}
{"actor":{"display_login":"fdidron"}}