{"action":"created","issue":{"url":"https://api.github.com/repos/PolymerElements/polymer-starter-kit/issues/754","repository_url":"https://api.github.com/repos/PolymerElements/polymer-starter-kit","labels_url":"https://api.github.com/repos/PolymerElements/polymer-starter-kit/issues/754/labels{/name}","comments_url":"https://api.github.com/repos/PolymerElements/polymer-starter-kit/issues/754/comments","events_url":"https://api.github.com/repos/PolymerElements/polymer-starter-kit/issues/754/events","html_url":"https://github.com/PolymerElements/polymer-starter-kit/issues/754","id":141509449,"number":754,"title":"Failed to parse web animations sourcemap","user":{"login":"motss","id":10607759,"avatar_url":"https://avatars.githubusercontent.com/u/10607759?v=3","gravatar_id":"","url":"https://api.github.com/users/motss","html_url":"https://github.com/motss","followers_url":"https://api.github.com/users/motss/followers","following_url":"https://api.github.com/users/motss/following{/other_user}","gists_url":"https://api.github.com/users/motss/gists{/gist_id}","starred_url":"https://api.github.com/users/motss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motss/subscriptions","organizations_url":"https://api.github.com/users/motss/orgs","repos_url":"https://api.github.com/users/motss/repos","events_url":"https://api.github.com/users/motss/events{/privacy}","received_events_url":"https://api.github.com/users/motss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-03-17T08:13:00Z","updated_at":"2016-03-29T17:38:26Z","closed_at":null,"body":"Anyone come across this issue while deploying your app to Firebase? Is it only me?\r\nThinking of sending in a PR to fix this.\r\n\r\n![capture](https://cloud.githubusercontent.com/assets/10607759/13840058/dfb25206-ec5a-11e5-979e-974ee49a8652.PNG)\r\n\r\n## Expected outcome\r\nOpen webpage after running `gulp && firebase deploy` and the page loads successfully without any issue and no error message is thrown at the Dev Tools' console.\r\n\r\n## Actual outcome\r\nVulcanized `elements.html`, `app.js`, etc are successfully downloaded and the page loads without any issue but the error message `Failed to parse SourceMap` appears at the Dev Tools' console.\r\n\r\n## Steps to reproduce the issue\r\n- Run `gulp && firebase deploy`\r\n- Open webpage after deploy is done.\r\n- Open Dev Tools' console and you can find the error message `Failed to parse SourceMap` as shown in the image above.\r\n\r\n## Additional info\r\n- Only vulcanizing all files will cause this issue on Firebase. \r\n- However, running `gulp` or `gulp serve:dist` locally will not see this issue.\r\n- This ONLY happens to Web Animations.\r\n"},"comment":{"url":"https://api.github.com/repos/PolymerElements/polymer-starter-kit/issues/comments/203019172","html_url":"https://github.com/PolymerElements/polymer-starter-kit/issues/754#issuecomment-203019172","issue_url":"https://api.github.com/repos/PolymerElements/polymer-starter-kit/issues/754","id":203019172,"user":{"login":"mbleigh","id":1022,"avatar_url":"https://avatars.githubusercontent.com/u/1022?v=3","gravatar_id":"","url":"https://api.github.com/users/mbleigh","html_url":"https://github.com/mbleigh","followers_url":"https://api.github.com/users/mbleigh/followers","following_url":"https://api.github.com/users/mbleigh/following{/other_user}","gists_url":"https://api.github.com/users/mbleigh/gists{/gist_id}","starred_url":"https://api.github.com/users/mbleigh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbleigh/subscriptions","organizations_url":"https://api.github.com/users/mbleigh/orgs","repos_url":"https://api.github.com/users/mbleigh/repos","events_url":"https://api.github.com/users/mbleigh/events{/privacy}","received_events_url":"https://api.github.com/users/mbleigh/received_events","type":"User","site_admin":false},"created_at":"2016-03-29T17:38:25Z","updated_at":"2016-03-29T17:38:25Z","body":"\"Failing to parse\" in this case is a bit of a misnomer - the file just isn't there there. The content at https://polymerimation.firebaseapp.com/elements/web-animations-next-lite.min.js.map is the `index.html` content of the app (as caused by the `**` rewrite).\r\n\r\nMy guess is that the source map isn't being created, isn't being copied to the right directory in `dist`, or isn't being deployed to Firebase. You might try updating your `rewrites` in `firebase.json` to:\r\n\r\n```\r\n\"rewrites\": [\r\n  {\r\n    \"source\": \"!{/bower_components,/elements}/**\",\r\n    \"destination\": \"/index.html\"\r\n  }\r\n]\r\n```\r\n\r\nThis will prevent weird 404-as-200 confusing errors."}}