{"action":"created","issue":{"url":"https://api.github.com/repos/systemjs/builder/issues/499","repository_url":"https://api.github.com/repos/systemjs/builder","labels_url":"https://api.github.com/repos/systemjs/builder/issues/499/labels{/name}","comments_url":"https://api.github.com/repos/systemjs/builder/issues/499/comments","events_url":"https://api.github.com/repos/systemjs/builder/issues/499/events","html_url":"https://github.com/systemjs/builder/issues/499","id":133695046,"number":499,"title":"Loading relative amd module without extension","user":{"login":"n00dl3","id":3089875,"avatar_url":"https://avatars.githubusercontent.com/u/3089875?v=3","gravatar_id":"","url":"https://api.github.com/users/n00dl3","html_url":"https://github.com/n00dl3","followers_url":"https://api.github.com/users/n00dl3/followers","following_url":"https://api.github.com/users/n00dl3/following{/other_user}","gists_url":"https://api.github.com/users/n00dl3/gists{/gist_id}","starred_url":"https://api.github.com/users/n00dl3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n00dl3/subscriptions","organizations_url":"https://api.github.com/users/n00dl3/orgs","repos_url":"https://api.github.com/users/n00dl3/repos","events_url":"https://api.github.com/users/n00dl3/events{/privacy}","received_events_url":"https://api.github.com/users/n00dl3/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-15T11:55:50Z","updated_at":"2016-02-15T15:47:56Z","closed_at":null,"body":"When I use the builder I got an error:\r\n>Error: Unable to calculate canonical name to bundle file:///path/to/project/node_modules/crypto-js/core. Ensure that this module sits within the baseURL or a wildcard path config.\r\n\r\nI set the `defaultExtension` property to `true` in my package config like so:\r\n```javascript\r\nSystem.config({\r\n  // or 'traceur' or 'typescript'\r\n  transpiler: \"traceur\",\r\n  baseURL: \"src/js\",\r\n  packages: {\r\n    \"crypto-js\": {\r\n      main: \"index.js\",\r\n      format: \"amd\",\r\n      defaultExtension: true\r\n    }\r\n  },\r\n  paths: {\r\n    \"crypto-js/*\":\"./node_modules/crypto-js/*.js\"\r\n  }\r\n\r\n});\r\n```\r\ncrypto-js is an amd package, and I import `\"cryptojs/md5\"` in my own module, the fact is `\"crypto-js/md5\"` requires `\"crypto-js/core\"`, which is required relatively: `require(\"./core\");`\r\nIs there any way to handle that without rewriting the module ?\r\n\r\nNote: I also tried to put `\"js\"` instead of `true` for `defaultExtension` and added a `map` property in package options like that : `map:{ \"./core\":\"./core.js\" }` but no change..."},"comment":{"url":"https://api.github.com/repos/systemjs/builder/issues/comments/184264618","html_url":"https://github.com/systemjs/builder/issues/499#issuecomment-184264618","issue_url":"https://api.github.com/repos/systemjs/builder/issues/499","id":184264618,"user":{"login":"n00dl3","id":3089875,"avatar_url":"https://avatars.githubusercontent.com/u/3089875?v=3","gravatar_id":"","url":"https://api.github.com/users/n00dl3","html_url":"https://github.com/n00dl3","followers_url":"https://api.github.com/users/n00dl3/followers","following_url":"https://api.github.com/users/n00dl3/following{/other_user}","gists_url":"https://api.github.com/users/n00dl3/gists{/gist_id}","starred_url":"https://api.github.com/users/n00dl3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n00dl3/subscriptions","organizations_url":"https://api.github.com/users/n00dl3/orgs","repos_url":"https://api.github.com/users/n00dl3/repos","events_url":"https://api.github.com/users/n00dl3/events{/privacy}","received_events_url":"https://api.github.com/users/n00dl3/received_events","type":"User","site_admin":false},"created_at":"2016-02-15T15:47:56Z","updated_at":"2016-02-15T15:47:56Z","body":"Really ? I found it [in the docs](https://github.com/ModuleLoader/es6-module-loader/blob/master/docs/loader-config.md) :\r\n>It is also possible to define wildcard paths rules. The most specific rule will be used:\r\n  System.paths['lodash/*'] = '/js/lodash/*.js'\r\n\r\nIt does not help, anyway...\r\n> \\>\\>\\> Error: ENOENT: no such file or directory, open '/path/to/project/node_modules/crypto-js/md5'\r\nwith `\"crypto-js/*\":\"./node_modules/crypto-js/*\"` in paths"}}