{"action":"closed","issue":{"url":"https://api.github.com/repos/graphql-boilerplates/react-fullstack-graphql/issues/413","repository_url":"https://api.github.com/repos/graphql-boilerplates/react-fullstack-graphql","labels_url":"https://api.github.com/repos/graphql-boilerplates/react-fullstack-graphql/issues/413/labels{/name}","comments_url":"https://api.github.com/repos/graphql-boilerplates/react-fullstack-graphql/issues/413/comments","events_url":"https://api.github.com/repos/graphql-boilerplates/react-fullstack-graphql/issues/413/events","html_url":"https://github.com/graphql-boilerplates/react-fullstack-graphql/issues/413","id":339038608,"node_id":"MDU6SXNzdWUzMzkwMzg2MDg=","number":413,"title":"es6 support","user":{"login":"gHashTag","id":6774813,"node_id":"MDQ6VXNlcjY3NzQ4MTM=","avatar_url":"https://avatars0.githubusercontent.com/u/6774813?v=4","gravatar_id":"","url":"https://api.github.com/users/gHashTag","html_url":"https://github.com/gHashTag","followers_url":"https://api.github.com/users/gHashTag/followers","following_url":"https://api.github.com/users/gHashTag/following{/other_user}","gists_url":"https://api.github.com/users/gHashTag/gists{/gist_id}","starred_url":"https://api.github.com/users/gHashTag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gHashTag/subscriptions","organizations_url":"https://api.github.com/users/gHashTag/orgs","repos_url":"https://api.github.com/users/gHashTag/repos","events_url":"https://api.github.com/users/gHashTag/events{/privacy}","received_events_url":"https://api.github.com/users/gHashTag/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-07-06T18:49:29Z","updated_at":"2018-12-09T14:16:12Z","closed_at":"2018-12-09T14:16:12Z","author_association":"NONE","body":"#### How do I add es6 support to the server ?\r\n\r\n#### I tryed:\r\n`yarn add -D babel-cli babel-plugin-transform-object-rest-spread babel-preset-env`\r\n\r\n#### package.json\r\n`\"start\": \"nodemon -e js,graphql -x node -r dotenv/config babel-node src/index.js\",`\r\n\r\n#### .babelrc\r\n```javascript\r\n{\r\n  \"presets\": [\r\n    [\r\n      \"env\",\r\n      {\r\n        \"targets\": {\r\n          \"node\": \"6.10\"\r\n        }\r\n      }\r\n    ]\r\n  ],\r\n  \"plugins\": [\r\n    [\r\n      \"transform-object-rest-spread\",\r\n      {\r\n        \"useBuiltIns\": true\r\n      }\r\n    ]\r\n  ]\r\n}\r\n```\r\n\r\n#### but I get an error in response:\r\n\r\n```\r\n[nodemon] starting `node -r dotenv/config babel src/index.js`\r\ninternal/modules/cjs/loader.js:550\r\n    throw err;\r\n    ^\r\n\r\nError: Cannot find module '/Users/xyz/iYOGi/prisma/server/babel'\r\n    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:548:15)\r\n    at Function.Module._load (internal/modules/cjs/loader.js:475:25)\r\n    at Function.Module.runMain (internal/modules/cjs/loader.js:695:10)\r\n    at startup (internal/bootstrap/node.js:201:19)\r\n    at bootstrapNodeJSCore (internal/bootstrap/node.js:516:3)\r\n```\r\n\r\n"}}
{"actor":{"display_login":"gHashTag"}}