{"action":"created","issue":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/638","labels_url":"https://api.github.com/repos/jspm/jspm-cli/issues/638/labels{/name}","comments_url":"https://api.github.com/repos/jspm/jspm-cli/issues/638/comments","events_url":"https://api.github.com/repos/jspm/jspm-cli/issues/638/events","html_url":"https://github.com/jspm/jspm-cli/issues/638","id":65106565,"number":638,"title":"Cannot import module with dot its name","user":{"login":"mindeavor","id":17013,"avatar_url":"https://avatars.githubusercontent.com/u/17013?v=3","gravatar_id":"","url":"https://api.github.com/users/mindeavor","html_url":"https://github.com/mindeavor","followers_url":"https://api.github.com/users/mindeavor/followers","following_url":"https://api.github.com/users/mindeavor/following{/other_user}","gists_url":"https://api.github.com/users/mindeavor/gists{/gist_id}","starred_url":"https://api.github.com/users/mindeavor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mindeavor/subscriptions","organizations_url":"https://api.github.com/users/mindeavor/orgs","repos_url":"https://api.github.com/users/mindeavor/repos","events_url":"https://api.github.com/users/mindeavor/events{/privacy}","received_events_url":"https://api.github.com/users/mindeavor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-29T23:23:35Z","updated_at":"2015-03-31T12:57:42Z","closed_at":null,"body":"I'm trying to use `import m from 'mithril.js'`, but jspm is not translating it. Instead I get the following error:\r\n\r\n```\r\nFailed to load resource: the server responded with a status of 404 (Not Found)\r\nes6-module-loader.js:7 Potentially unhandled rejection [3] Error loading \"mithril.js\" at http://127.0.0.1:8080/mithril.js.js\r\nError loading \"mithril.js\" from \"test\" at http://127.0.0.1:8080/test.js\r\nNot Found: http://127.0.0.1:8080/mithril.js.js (WARNING: non-Error used)\r\n```\r\n\r\nHere's how to reproduce:\r\n\r\n```bash\r\n$ jspm init # `yes` to all defaults\r\n$ jspm install github:lhorie/mithril.js\r\n$ echo 'import m from 'mithril.js'' > test.js\r\n$ echo '<script src=\"jspm_packages/system.js\"></script><script src=\"config.js\"></script><script>System.import(\"test\");</script>' > index.html\r\n$ npm install -g live-server\r\n$ live-server\r\n```"},"comment":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/comments/88073886","html_url":"https://github.com/jspm/jspm-cli/issues/638#issuecomment-88073886","issue_url":"https://api.github.com/repos/jspm/jspm-cli/issues/638","id":88073886,"user":{"login":"mindeavor","id":17013,"avatar_url":"https://avatars.githubusercontent.com/u/17013?v=3","gravatar_id":"","url":"https://api.github.com/users/mindeavor","html_url":"https://github.com/mindeavor","followers_url":"https://api.github.com/users/mindeavor/followers","following_url":"https://api.github.com/users/mindeavor/following{/other_user}","gists_url":"https://api.github.com/users/mindeavor/gists{/gist_id}","starred_url":"https://api.github.com/users/mindeavor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mindeavor/subscriptions","organizations_url":"https://api.github.com/users/mindeavor/orgs","repos_url":"https://api.github.com/users/mindeavor/repos","events_url":"https://api.github.com/users/mindeavor/events{/privacy}","received_events_url":"https://api.github.com/users/mindeavor/received_events","type":"User","site_admin":false},"created_at":"2015-03-31T12:57:42Z","updated_at":"2015-03-31T12:57:42Z","body":"Thank you. I'm leaving this open until someone gets time to put this in [the docs](https://github.com/jspm/jspm-cli/wiki/Installing-Packages#requiring-packages) (might be me but I'm not sure when)."}}