{"action":"created","issue":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/356","repository_url":"https://api.github.com/repos/gatsbyjs/gatsby","labels_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/356/labels{/name}","comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/356/comments","events_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/356/events","html_url":"https://github.com/gatsbyjs/gatsby/issues/356","id":166131207,"number":356,"title":"Unable to use the fs lib for some reason?","user":{"login":"colbycheeze","id":8884298,"avatar_url":"https://avatars.githubusercontent.com/u/8884298?v=3","gravatar_id":"","url":"https://api.github.com/users/colbycheeze","html_url":"https://github.com/colbycheeze","followers_url":"https://api.github.com/users/colbycheeze/followers","following_url":"https://api.github.com/users/colbycheeze/following{/other_user}","gists_url":"https://api.github.com/users/colbycheeze/gists{/gist_id}","starred_url":"https://api.github.com/users/colbycheeze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colbycheeze/subscriptions","organizations_url":"https://api.github.com/users/colbycheeze/orgs","repos_url":"https://api.github.com/users/colbycheeze/repos","events_url":"https://api.github.com/users/colbycheeze/events{/privacy}","received_events_url":"https://api.github.com/users/colbycheeze/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-18T16:08:06Z","updated_at":"2016-07-18T16:34:28Z","closed_at":null,"body":"Hi, I am trying to load a file with fs so doing the usual `import fs from 'fs'`\r\n\r\n...but for some reason I get this:\r\n```\r\nModule not found: Error: Cannot resolve module 'fs' in /Users/colbywilliams/projects/gatsby-example-site/pages\r\nresolve module fs in /Users/colbywilliams/projects/gatsby-example-site/pages\r\n```\r\n\r\nCan't seem to find an answer that works from Google. Any idea what causes this?"},"comment":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/comments/233383381","html_url":"https://github.com/gatsbyjs/gatsby/issues/356#issuecomment-233383381","issue_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/356","id":233383381,"user":{"login":"KyleAMathews","id":71047,"avatar_url":"https://avatars.githubusercontent.com/u/71047?v=3","gravatar_id":"","url":"https://api.github.com/users/KyleAMathews","html_url":"https://github.com/KyleAMathews","followers_url":"https://api.github.com/users/KyleAMathews/followers","following_url":"https://api.github.com/users/KyleAMathews/following{/other_user}","gists_url":"https://api.github.com/users/KyleAMathews/gists{/gist_id}","starred_url":"https://api.github.com/users/KyleAMathews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KyleAMathews/subscriptions","organizations_url":"https://api.github.com/users/KyleAMathews/orgs","repos_url":"https://api.github.com/users/KyleAMathews/repos","events_url":"https://api.github.com/users/KyleAMathews/events{/privacy}","received_events_url":"https://api.github.com/users/KyleAMathews/received_events","type":"User","site_admin":false},"created_at":"2016-07-18T16:34:28Z","updated_at":"2016-07-18T16:34:28Z","body":"Is this in a frontend module or node module? If frontend, you can't access\nthe file system.\nOn Mon, Jul 18, 2016 at 9:08 AM Colby Williams <notifications@github.com>\nwrote:\n\n> Hi, I am trying to load a file with fs so doing the usual import fs from\n> 'fs'\n>\n> ...but for some reason I get this:\n>\n> Module not found: Error: Cannot resolve module 'fs' in /Users/colbywilliams/projects/gatsby-example-site/pages\n> resolve module fs in /Users/colbywilliams/projects/gatsby-example-site/pages\n>\n> Can't seem to find an answer that works from Google. Any idea what causes\n> this?\n>\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/gatsbyjs/gatsby/issues/356>, or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AAEVhy1DU6_5pmTl2BPbA7QJGia3gMCBks5qW6TngaJpZM4JO3_m>\n> .\n>\n"}}
{"actor":{"display_login":"KyleAMathews"}}