{"action":"created","issue":{"url":"https://api.github.com/repos/systemjs/systemjs/issues/303","labels_url":"https://api.github.com/repos/systemjs/systemjs/issues/303/labels{/name}","comments_url":"https://api.github.com/repos/systemjs/systemjs/issues/303/comments","events_url":"https://api.github.com/repos/systemjs/systemjs/issues/303/events","html_url":"https://github.com/systemjs/systemjs/issues/303","id":53756151,"number":303,"title":"Windows","user":{"login":"arcanis","id":1037931,"avatar_url":"https://avatars.githubusercontent.com/u/1037931?v=3","gravatar_id":"","url":"https://api.github.com/users/arcanis","html_url":"https://github.com/arcanis","followers_url":"https://api.github.com/users/arcanis/followers","following_url":"https://api.github.com/users/arcanis/following{/other_user}","gists_url":"https://api.github.com/users/arcanis/gists{/gist_id}","starred_url":"https://api.github.com/users/arcanis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arcanis/subscriptions","organizations_url":"https://api.github.com/users/arcanis/orgs","repos_url":"https://api.github.com/users/arcanis/repos","events_url":"https://api.github.com/users/arcanis/events{/privacy}","received_events_url":"https://api.github.com/users/arcanis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-08T14:31:15Z","updated_at":"2015-01-08T15:29:07Z","closed_at":null,"body":"I don't really understand the windows compatibility and may use some additional infos :\r\n\r\n  - Why does the path have to be prefixed by `file:` ? Can't SystemJS add them internally when needed? They break tools such as the `path` module, and are really weird on unix.\r\n\r\n  - When I do something like `System.import('willikins/_run')`, I get the following error:\r\n\r\n    ```\r\n    Error loading \"willikins/_run\" at c:\\Users\\Mael\\AppData\\Roaming\\npm\\node_modules\\willikins\\sources/_run.js\r\n    Only file URLs of the form file: allowed running in Node.\r\n    ```\r\n\r\n  - When I fix the import by adding the prefix (`System.import('file:willikins/_run')`), SystemJS is ignoring my path configuration:\r\n\r\n    ```\r\n    Error: Error loading \"file:willikins/_run\" at file:willikins/_run.js\r\nENOENT, open 'C:\\Users\\Mael\\Downloads\\LimitedSpoiler\\server\\willikins\\_run.js'\r\n    ```\r\n\r\n    (notice how the loaded file has changed, but is now relative to my current directory, rather than the one I want it to load)\r\n\r\n  - Finally, when adding the `file:` prefix to the path too, I get the same error as before (only file URLs ... allowed running in Node).\r\n\r\nWhat I am missing ?\r\n"},"comment":{"url":"https://api.github.com/repos/systemjs/systemjs/issues/comments/69194867","html_url":"https://github.com/systemjs/systemjs/issues/303#issuecomment-69194867","issue_url":"https://api.github.com/repos/systemjs/systemjs/issues/303","id":69194867,"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":"2015-01-08T15:29:07Z","updated_at":"2015-01-08T15:29:07Z","body":"The internal use of `file:` is identical to how you might expect file URLs to work in the browser. It's not a system that is compatible with `/` style URLs and you need conversions if you want it to be.\r\n\r\nWhat is your baseURL?"}}