{"action":"created","issue":{"url":"https://api.github.com/repos/aurelia/cli/issues/110","labels_url":"https://api.github.com/repos/aurelia/cli/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/aurelia/cli/issues/110/comments","events_url":"https://api.github.com/repos/aurelia/cli/issues/110/events","html_url":"https://github.com/aurelia/cli/issues/110","id":90039203,"number":110,"title":"Error trying to bundle","user":{"login":"lukeapage","id":309321,"avatar_url":"https://avatars.githubusercontent.com/u/309321?v=3","gravatar_id":"","url":"https://api.github.com/users/lukeapage","html_url":"https://github.com/lukeapage","followers_url":"https://api.github.com/users/lukeapage/followers","following_url":"https://api.github.com/users/lukeapage/following{/other_user}","gists_url":"https://api.github.com/users/lukeapage/gists{/gist_id}","starred_url":"https://api.github.com/users/lukeapage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukeapage/subscriptions","organizations_url":"https://api.github.com/users/lukeapage/orgs","repos_url":"https://api.github.com/users/lukeapage/repos","events_url":"https://api.github.com/users/lukeapage/events{/privacy}","received_events_url":"https://api.github.com/users/lukeapage/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-22T08:10:28Z","updated_at":"2015-06-22T08:17:50Z","closed_at":null,"body":"I am trying to follow your instructions for bundling but no matter what I do I get\r\n\r\n```\r\ninfo: Using Aureliafile: c:\\path\\to\\Aureliafile.js\r\ninfo: Creating bundle ...\r\n\r\nc:\\path\\to\\node_modules\\aurelia-cli\\dist\\lib\\bundler.js:204\r\n  if (!pathMatch) throw 'Unable to calculate path for ' + address;\r\n                                                        ^\r\nUnable to calculate path for file:c:/path/to/app.js\r\n```\r\n\r\nI am using a branch for aurelia-skeleton-navigation and copied your aurelia file from the readme..\r\n\r\n```\r\nvar aurelia = require('aurelia-cli');\r\n\r\naurelia.command('bundle', {\r\n  js: {\r\n    app: {\r\n      modules: [\r\n        'src/*',\r\n      ],\r\n      options: {\r\n        inject: true\r\n      }\r\n    },\r\n    'aurelia-bundle': {\r\n      modules: [\r\n        \"aurelia-dependency-injection\"\r\n      ],\r\n      options: {\r\n        inject: false\r\n      }\r\n    }\r\n  },\r\n  template: {\r\n    app: {\r\n      pattern: 'dist/*.html',\r\n      options: {\r\n        inject: true,\r\n      }\r\n    }\r\n  }\r\n});\r\n```\r\n\r\nI've been deleting and modifying things but no matter what I do, I seem to always get the same error  (If I remove the app module, it errors on aurelia-bundle).\r\n\r\nGiven the error is on the name of the property in the js and it seems to have already resolved a path, I have no idea what to do to fix it.\r\n\r\nIf this is my mistake, sorry, but perhaps the error could be better in this scenario?"},"comment":{"url":"https://api.github.com/repos/aurelia/cli/issues/comments/114036633","html_url":"https://github.com/aurelia/cli/issues/110#issuecomment-114036633","issue_url":"https://api.github.com/repos/aurelia/cli/issues/110","id":114036633,"user":{"login":"lukeapage","id":309321,"avatar_url":"https://avatars.githubusercontent.com/u/309321?v=3","gravatar_id":"","url":"https://api.github.com/users/lukeapage","html_url":"https://github.com/lukeapage","followers_url":"https://api.github.com/users/lukeapage/followers","following_url":"https://api.github.com/users/lukeapage/following{/other_user}","gists_url":"https://api.github.com/users/lukeapage/gists{/gist_id}","starred_url":"https://api.github.com/users/lukeapage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukeapage/subscriptions","organizations_url":"https://api.github.com/users/lukeapage/orgs","repos_url":"https://api.github.com/users/lukeapage/repos","events_url":"https://api.github.com/users/lukeapage/events{/privacy}","received_events_url":"https://api.github.com/users/lukeapage/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T08:17:49Z","updated_at":"2015-06-22T08:17:49Z","body":"aha, if I change it to..\r\n\r\n```\r\nvar aurelia = require('aurelia-cli');\r\n\r\naurelia.command('bundle', {\r\n  js: {\r\n    'dist/app': {\r\n      modules: [\r\n        'src/*',\r\n      ],\r\n      options: {\r\n        inject: true\r\n      }\r\n    },\r\n    'dist/aurelia-bundle': {\r\n      modules: [\r\n        \"aurelia-dependency-injection\"\r\n      ],\r\n      options: {\r\n        inject: false\r\n      }\r\n    }\r\n  },\r\n  template: {\r\n    app: {\r\n      pattern: 'dist/*.html',\r\n      options: {\r\n        inject: true,\r\n      }\r\n    }\r\n  }\r\n});\r\n```\r\n\r\nit now works. so perhaps the example should have paths? and the cli shouldn't throw an error if you want the bundles in your root directory?"}}