{"action":"created","issue":{"url":"https://api.github.com/repos/systemjs/systemjs/issues/1238","repository_url":"https://api.github.com/repos/systemjs/systemjs","labels_url":"https://api.github.com/repos/systemjs/systemjs/issues/1238/labels{/name}","comments_url":"https://api.github.com/repos/systemjs/systemjs/issues/1238/comments","events_url":"https://api.github.com/repos/systemjs/systemjs/issues/1238/events","html_url":"https://github.com/systemjs/systemjs/issues/1238","id":150840693,"number":1238,"title":"Can't get even most basic hello world with TypeScript working","user":{"login":"henrify","id":7379209,"avatar_url":"https://avatars.githubusercontent.com/u/7379209?v=3","gravatar_id":"","url":"https://api.github.com/users/henrify","html_url":"https://github.com/henrify","followers_url":"https://api.github.com/users/henrify/followers","following_url":"https://api.github.com/users/henrify/following{/other_user}","gists_url":"https://api.github.com/users/henrify/gists{/gist_id}","starred_url":"https://api.github.com/users/henrify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henrify/subscriptions","organizations_url":"https://api.github.com/users/henrify/orgs","repos_url":"https://api.github.com/users/henrify/repos","events_url":"https://api.github.com/users/henrify/events{/privacy}","received_events_url":"https://api.github.com/users/henrify/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/systemjs/systemjs/labels/support","name":"support","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-25T12:22:30Z","updated_at":"2016-04-27T10:32:48Z","closed_at":"2016-04-27T10:32:48Z","body":"Giving SystemJS a try, but I can't find even basic hello world example without angular2 (which i don't use), and my best guess masterpiece doesn't work:\r\n\r\nIncredible app.ts:\r\n\r\n```\r\nexport function hello() {\r\n\tconsole.log(\"world\");\r\n}\r\n```\r\n\r\nTranspiled to app.js by Visual Studio with TypeScript 1.8.5:\r\n\r\n```\r\nSystem.register(\"app\", [], function(exports_1, context_1) {\r\n    \"use strict\";\r\n    var __moduleName = context_1 && context_1.id;\r\n    function hello() {\r\n        console.log(\"world\");\r\n    }\r\n    exports_1(\"hello\", hello);\r\n    return {\r\n        setters:[],\r\n        execute: function() {\r\n        }\r\n    }\r\n});\r\n//# sourceMappingURL=app.js.map\r\n```\r\n\r\nWhich i try to load with:\r\n\r\n\r\n```\r\n<!DOCTYPE html>\r\n<html><head><title>wtf</title>\r\n\t<script src=\"./node_modules/systemjs/dist/system.js\"></script>\r\n\t<script>\r\n\t\tSystem.import('app.js')\r\n\t\t\t.then(function(module) {\r\n\t\t\t\tconsole.log(\"ok\");\r\n\t\t\t\tfor (prop in module) {\r\n\t\t\t\t\tconsole.log(\"module has prop: \" + prop);\r\n\t\t\t\t}\r\n\t\t\t}, function() {\r\n\t\t\t\tconsole.log(\"not so much ok\");\r\n\t\t\t});\r\n\r\n\t</script>\r\n</head><body></body></html>\r\n```\r\n\r\nThe http requests to load system.js and app.js are successful, 'ok' but nothing else is displayed on console, and when inspecting with debugger the 'module' is an empty object. No warnings or errors on console.\r\n\r\nI don't know anything about SystemJS and must be missing something obvious? Might be brilliant to include basic hello world example in the docs though.\r\n"},"comment":{"url":"https://api.github.com/repos/systemjs/systemjs/issues/comments/215043791","html_url":"https://github.com/systemjs/systemjs/issues/1238#issuecomment-215043791","issue_url":"https://api.github.com/repos/systemjs/systemjs/issues/1238","id":215043791,"user":{"login":"guybedford","id":598730,"avatar_url":"https://avatars.githubusercontent.com/u/598730?v=3","gravatar_id":"","url":"https://api.github.com/users/guybedford","html_url":"https://github.com/guybedford","followers_url":"https://api.github.com/users/guybedford/followers","following_url":"https://api.github.com/users/guybedford/following{/other_user}","gists_url":"https://api.github.com/users/guybedford/gists{/gist_id}","starred_url":"https://api.github.com/users/guybedford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guybedford/subscriptions","organizations_url":"https://api.github.com/users/guybedford/orgs","repos_url":"https://api.github.com/users/guybedford/repos","events_url":"https://api.github.com/users/guybedford/events{/privacy}","received_events_url":"https://api.github.com/users/guybedford/received_events","type":"User","site_admin":false},"created_at":"2016-04-27T10:32:48Z","updated_at":"2016-04-27T10:32:48Z","body":"The problem here is that the generated file should be using `app.js`, so it's an incompatibility of approaches between tools. Extensions are not added automatically in SystemJS and this option is being deprecated.\r\n\r\nThis is then exactly a documentation problem, which I'm personally prioritising as soon as jspm 0.17 documentation is updated. Documentation PRs are always welcome too."}}