{"action":"created","issue":{"url":"https://api.github.com/repos/aurelia/skeleton-navigation/issues/537","repository_url":"https://api.github.com/repos/aurelia/skeleton-navigation","labels_url":"https://api.github.com/repos/aurelia/skeleton-navigation/issues/537/labels{/name}","comments_url":"https://api.github.com/repos/aurelia/skeleton-navigation/issues/537/comments","events_url":"https://api.github.com/repos/aurelia/skeleton-navigation/issues/537/events","html_url":"https://github.com/aurelia/skeleton-navigation/issues/537","id":162138778,"number":537,"title":"Accessing Node core modules from within an Aurelia Electron App","user":{"login":"seesharper","id":1034073,"avatar_url":"https://avatars.githubusercontent.com/u/1034073?v=3","gravatar_id":"","url":"https://api.github.com/users/seesharper","html_url":"https://github.com/seesharper","followers_url":"https://api.github.com/users/seesharper/followers","following_url":"https://api.github.com/users/seesharper/following{/other_user}","gists_url":"https://api.github.com/users/seesharper/gists{/gist_id}","starred_url":"https://api.github.com/users/seesharper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seesharper/subscriptions","organizations_url":"https://api.github.com/users/seesharper/orgs","repos_url":"https://api.github.com/users/seesharper/repos","events_url":"https://api.github.com/users/seesharper/events{/privacy}","received_events_url":"https://api.github.com/users/seesharper/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-06-24T12:42:22Z","updated_at":"2016-06-24T19:23:06Z","closed_at":"2016-06-24T13:42:28Z","body":"I am doing a little experiment with using Aurelia to build Electron applications.\r\n\r\nYou can find what I have got so far here.\r\nhttps://github.com/seesharper/AureliaElectronHappiness\r\n\r\nThe question is how do I access core modules such as \"fs\" from within a typescript component?\r\n\r\nI have tried this\r\n```\r\nimport fs = require(\"fs\");\r\n```\r\n\r\nVS Code does give the impression that this is okay since it provides the intellisense for the fs object, but at runtime this failes with an error.\r\n```\r\nUncaught (in promise) Error: (SystemJS) Error: XHR error loading file:///Users/bernhardrichter/MyApp/dist/fs.js(…) \r\n```\r\n\r\nIs it even possible to do this somehow?\r\n\r\n \r\n"},"comment":{"url":"https://api.github.com/repos/aurelia/skeleton-navigation/issues/comments/228438268","html_url":"https://github.com/aurelia/skeleton-navigation/issues/537#issuecomment-228438268","issue_url":"https://api.github.com/repos/aurelia/skeleton-navigation/issues/537","id":228438268,"user":{"login":"seesharper","id":1034073,"avatar_url":"https://avatars.githubusercontent.com/u/1034073?v=3","gravatar_id":"","url":"https://api.github.com/users/seesharper","html_url":"https://github.com/seesharper","followers_url":"https://api.github.com/users/seesharper/followers","following_url":"https://api.github.com/users/seesharper/following{/other_user}","gists_url":"https://api.github.com/users/seesharper/gists{/gist_id}","starred_url":"https://api.github.com/users/seesharper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seesharper/subscriptions","organizations_url":"https://api.github.com/users/seesharper/orgs","repos_url":"https://api.github.com/users/seesharper/repos","events_url":"https://api.github.com/users/seesharper/events{/privacy}","received_events_url":"https://api.github.com/users/seesharper/received_events","type":"User","site_admin":false},"created_at":"2016-06-24T19:23:05Z","updated_at":"2016-06-24T19:23:05Z","body":"FYI, I just tried the solution suggested by @EisenbergEffect \r\n\r\nJSPM version 0.16.39\r\n\r\n```\r\nundefined:1 Uncaught (in promise) Error: (SystemJS) Error: XHR error loading file:///Users/bernhardrichter/Projects/MyProject/dist/npm.js(…)\r\n```\r\n\r\nFurther help on this issue would be much appreciated \r\n\r\n"}}
{"actor":{"display_login":"seesharper"}}