{"action":"created","issue":{"url":"https://api.github.com/repos/angular/material2/issues/628","repository_url":"https://api.github.com/repos/angular/material2","labels_url":"https://api.github.com/repos/angular/material2/issues/628/labels{/name}","comments_url":"https://api.github.com/repos/angular/material2/issues/628/comments","events_url":"https://api.github.com/repos/angular/material2/issues/628/events","html_url":"https://github.com/angular/material2/issues/628","id":158493275,"number":628,"title":"ng build -prod fails with angular2-material","user":{"login":"iloveyo123u1","id":6580897,"avatar_url":"https://avatars.githubusercontent.com/u/6580897?v=3","gravatar_id":"","url":"https://api.github.com/users/iloveyo123u1","html_url":"https://github.com/iloveyo123u1","followers_url":"https://api.github.com/users/iloveyo123u1/followers","following_url":"https://api.github.com/users/iloveyo123u1/following{/other_user}","gists_url":"https://api.github.com/users/iloveyo123u1/gists{/gist_id}","starred_url":"https://api.github.com/users/iloveyo123u1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iloveyo123u1/subscriptions","organizations_url":"https://api.github.com/users/iloveyo123u1/orgs","repos_url":"https://api.github.com/users/iloveyo123u1/repos","events_url":"https://api.github.com/users/iloveyo123u1/events{/privacy}","received_events_url":"https://api.github.com/users/iloveyo123u1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-04T07:51:28Z","updated_at":"2016-06-04T13:30:20Z","closed_at":null,"body":"https://github.com/angular/angular-cli/issues/1002\r\n\r\n\r\nng version：\r\n**angular-cli: 1.0.0-beta.5\r\nnode: 5.10.1\r\nos: win32 x64**\r\n\r\n\r\n angular   2.0.0-rc.1\r\nangular2-material   2.0.0-alpha.4\r\n\r\n-----------------------------------------\r\n**angular-cli-build.js**\r\n```\r\n/* global require, module */\r\n\r\nvar Angular2App = require('angular-cli/lib/broccoli/angular2-app');\r\n\r\nmodule.exports = function(defaults) {\r\n  return new Angular2App(defaults, {\r\n\r\n    vendorNpmFiles: [\r\n      'systemjs/dist/system-polyfills.js',\r\n      'systemjs/dist/system.src.js',\r\n      'zone.js/dist/**/*.+(js|js.map)',\r\n      'es6-shim/es6-shim.js',\r\n      'reflect-metadata/**/*.+(js|js.map)',\r\n      'rxjs/**/*.+(js|js.map)',\r\n      '@angular/**/*.+(js|js.map)',\r\n      '@angular2-material/**/*.+(js|js.map)',\r\n      'ng2-cookies/**/*.+(js|js.map)',\r\n      'ng2-resource-rest/*.+(js|js.map)',\r\n      // 'jquery/dist/*.+(js|js.map)',\r\n      // 'tether/dist/**/*.+(js|js.map|css|css.map)',\r\n      // 'bootstrap/**/*.+(js|js.map|css|css.map)',\r\n\r\n    ]\r\n  });\r\n};\r\n\r\n```\r\n**package.json**\r\n```\r\n\r\n{\r\n  \"name\": \"code\",\r\n  \"version\": \"0.0.0\",\r\n  \"license\": \"MIT\",\r\n  \"angular-cli\": {},\r\n  \"scripts\": {\r\n    \"start\": \"ng server\",\r\n    \"postinstall\": \"typings install\",\r\n    \"lint\": \"tslint \\\"src/**/*.ts\\\"\",\r\n    \"test\": \"ng test\",\r\n    \"pree2e\": \"webdriver-manager update\",\r\n    \"e2e\": \"protractor\"\r\n  },\r\n  \"private\": true,\r\n  \"dependencies\": {\r\n    \"@angular/common\": \"2.0.0-rc.1\",\r\n    \"@angular/compiler\": \"2.0.0-rc.1\",\r\n    \"@angular/core\": \"2.0.0-rc.1\",\r\n    \"@angular/http\": \"2.0.0-rc.1\",\r\n    \"@angular/platform-browser\": \"2.0.0-rc.1\",\r\n    \"@angular/platform-browser-dynamic\": \"2.0.0-rc.1\",\r\n    \"@angular/router\": \"2.0.0-rc.1\",\r\n    \"@angular/router-deprecated\": \"2.0.0-rc.1\",\r\n    \"@angular2-material/button\": \"^2.0.0-alpha.4\",\r\n    \"@angular2-material/card\": \"^2.0.0-alpha.4\",\r\n    \"@angular2-material/checkbox\": \"^2.0.0-alpha.4\",\r\n    \"@angular2-material/core\": \"^2.0.0-alpha.4\",\r\n    \"@angular2-material/grid-list\": \"^2.0.0-alpha.4-3\",\r\n    \"@angular2-material/icon\": \"^2.0.0-alpha.4\",\r\n    \"@angular2-material/input\": \"^2.0.0-alpha.4\",\r\n    \"@angular2-material/list\": \"^2.0.0-alpha.4\",\r\n    \"@angular2-material/progress-bar\": \"^2.0.0-alpha.4\",\r\n    \"@angular2-material/progress-circle\": \"^2.0.0-alpha.4\",\r\n    \"@angular2-material/radio\": \"^2.0.0-alpha.4\",\r\n    \"@angular2-material/sidenav\": \"^2.0.0-alpha.4\",\r\n    \"@angular2-material/toolbar\": \"^2.0.0-alpha.4\",\r\n    \"bootstrap\": \"^4.0.0-alpha.2\",\r\n    \"es6-shim\": \"^0.35.0\",\r\n    \"jquery\": \"^2.2.4\",\r\n    \"ng2-cookies\": \"^0.1.9\",\r\n    \"ng2-resource-rest\": \"^0.3.1\",\r\n    \"reflect-metadata\": \"0.1.3\",\r\n    \"rxjs\": \"5.0.0-beta.6\",\r\n    \"systemjs\": \"0.19.26\",\r\n    \"tether\": \"^1.3.2\",\r\n    \"zone.js\": \"^0.6.12\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"angular-cli\": \"^1.0.0-beta.5\",\r\n    \"codelyzer\": \"0.0.19\",\r\n    \"ember-cli-inject-live-reload\": \"^1.4.0\",\r\n    \"jasmine-core\": \"^2.4.1\",\r\n    \"jasmine-spec-reporter\": \"^2.4.0\",\r\n    \"karma\": \"^0.13.15\",\r\n    \"karma-chrome-launcher\": \"^0.2.3\",\r\n    \"karma-jasmine\": \"^0.3.8\",\r\n    \"protractor\": \"^3.3.0\",\r\n    \"ts-node\": \"^0.5.5\",\r\n    \"tslint\": \"^3.6.0\",\r\n    \"typescript\": \"^1.8.10\",\r\n    \"typings\": \"^0.8.1\"\r\n  }\r\n}\r\n\r\n```\r\n\r\n\r\n\r\n\r\n\r\ni run **ng serve**, it ok\r\n\r\nbut when  i run **ng build -prod**,i got an error:\r\n\r\n```\r\nD:\\code>ng build -prod\r\nBuild failed.\r\nThe Broccoli Plugin: [BundlePlugin] failed with:\r\nError tracing app/code.component.js at file:///D:/code/tmp/bundle_plugin-input_base_path-Mcx9z1mU.tmp/0/app/code.component.js\r\n        Loading app/index.js\r\n        Loading main.js\r\n        Error: Unable to calculate canonical name to bundle file:///vendor/@angular2-material/sidenav/sidenav. Ensure that this module sits within the baseURL or a wildcard path config.\r\n    at getCanonicalNamePlain (D:\\code\\node_modules\\systemjs-builder\\lib\\utils.js:220:13)\r\n    at getCanonicalName (D:\\code\\node_modules\\systemjs-builder\\lib\\utils.js:145:19)\r\n    at D:\\code\\node_modules\\systemjs-builder\\lib\\trace.js:471:36\r\n\r\nThe broccoli plugin was instantiated at:\r\n    at BundlePlugin.Plugin (D:\\code\\node_modules\\broccoli-plugin\\index.js:10:31)\r\n    at BundlePlugin.CachingWriter [as constructor] (D:\\code\\node_modules\\broccoli-caching-writer\\index.js:21:10)\r\n    at BundlePlugin (D:\\code\\node_modules\\angular-cli\\lib\\broccoli\\angular-broccoli-bundle.js:10:36)\r\n    at Angular2App._getBundleTree (D:\\code\\node_modules\\angular-cli\\lib\\broccoli\\angular2-app.js:421:22)\r\n    at Angular2App._buildTree (D:\\code\\node_modules\\angular-cli\\lib\\broccoli\\angular2-app.js:159:21)\r\n    at new Angular2App (D:\\code\\node_modules\\angular-cli\\lib\\broccoli\\angular2-app.js:53:23)\r\n    at module.exports (D:\\code\\angular-cli-build.js:6:10)\r\n    at Class.module.exports.Task.extend.setupBroccoliBuilder (D:\\code\\node_modules\\angular-cli\\lib\\models\\builder.js:55:19)\r\n    at Class.module.exports.Task.extend.init (D:\\code\\node_modules\\angular-cli\\lib\\models\\builder.js:89:10)\r\n    at new Class (D:\\code\\node_modules\\core-object\\core-object.js:18:12)\r\n    at Class.module.exports.Task.extend.run (D:\\code\\node_modules\\angular-cli\\lib\\tasks\\build.js:15:19)\r\n    at D:\\code\\node_modules\\angular-cli\\lib\\commands\\build.js:32:24\r\n    at lib$rsvp$$internal$$tryCatch (D:\\code\\node_modules\\rsvp\\dist\\rsvp.js:1036:16)\r\n    at lib$rsvp$$internal$$invokeCallback (D:\\code\\node_modules\\rsvp\\dist\\rsvp.js:1048:17)\r\n    at lib$rsvp$$internal$$publish (D:\\code\\node_modules\\rsvp\\dist\\rsvp.js:1019:11)\r\n    at lib$rsvp$asap$$flush (D:\\code\\node_modules\\rsvp\\dist\\rsvp.js:1198:9)\r\n\r\n```\r\n\r\ncould you  help me?\r\nthank you very much\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/angular/material2/issues/comments/223755769","html_url":"https://github.com/angular/material2/issues/628#issuecomment-223755769","issue_url":"https://api.github.com/repos/angular/material2/issues/628","id":223755769,"user":{"login":"Hacklone","id":2377220,"avatar_url":"https://avatars.githubusercontent.com/u/2377220?v=3","gravatar_id":"","url":"https://api.github.com/users/Hacklone","html_url":"https://github.com/Hacklone","followers_url":"https://api.github.com/users/Hacklone/followers","following_url":"https://api.github.com/users/Hacklone/following{/other_user}","gists_url":"https://api.github.com/users/Hacklone/gists{/gist_id}","starred_url":"https://api.github.com/users/Hacklone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hacklone/subscriptions","organizations_url":"https://api.github.com/users/Hacklone/orgs","repos_url":"https://api.github.com/users/Hacklone/repos","events_url":"https://api.github.com/users/Hacklone/events{/privacy}","received_events_url":"https://api.github.com/users/Hacklone/received_events","type":"User","site_admin":false},"created_at":"2016-06-04T13:30:20Z","updated_at":"2016-06-04T13:30:20Z","body":"I'm experiencing the same issue."}}
{"actor":{"display_login":"Hacklone"}}