{"action":"created","issue":{"url":"https://api.github.com/repos/Polymer/polymer/issues/2457","labels_url":"https://api.github.com/repos/Polymer/polymer/issues/2457/labels{/name}","comments_url":"https://api.github.com/repos/Polymer/polymer/issues/2457/comments","events_url":"https://api.github.com/repos/Polymer/polymer/issues/2457/events","html_url":"https://github.com/Polymer/polymer/issues/2457","id":107330753,"number":2457,"title":"CustomStyles: Uncaught TypeError: Cannot read property 'parsedSelector' of undefined","user":{"login":"wienczny","id":301227,"avatar_url":"https://avatars.githubusercontent.com/u/301227?v=3","gravatar_id":"","url":"https://api.github.com/users/wienczny","html_url":"https://github.com/wienczny","followers_url":"https://api.github.com/users/wienczny/followers","following_url":"https://api.github.com/users/wienczny/following{/other_user}","gists_url":"https://api.github.com/users/wienczny/gists{/gist_id}","starred_url":"https://api.github.com/users/wienczny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wienczny/subscriptions","organizations_url":"https://api.github.com/users/wienczny/orgs","repos_url":"https://api.github.com/users/wienczny/repos","events_url":"https://api.github.com/users/wienczny/events{/privacy}","received_events_url":"https://api.github.com/users/wienczny/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-19T12:51:48Z","updated_at":"2015-10-26T15:19:45Z","closed_at":null,"body":"Since I tried adding custom styles I get a lot of exceptions like this:\r\n```\r\nUncaught TypeError: Cannot read property 'parsedSelector' of undefined\r\n\r\nPolymer.StyleUtil.forEachStyleRule @ (index):7061\r\nPolymer._apply @ (index):8644Polymer._tryApply @ (index):8623\r\nPolymer.ready @ (index):8604\r\nPolymer.Base._addFeature._invokeBehavior @ (index):663\r\nPolymer.Base._addFeature._doBehavior @ (index):657\r\nPolymer.Base._addFeature._readySelf @ (index):1585\r\nPolymer.Base._addFeature._ready @ (index):1559\r\nPolymer.Base._addFeature._tryReady @ (index):1543\r\nPolymer.Base._addFeature._initFeatures @ (index):8503\r\nPolymer.Base.createdCallback @ (index):286\r\nPolymer.Base.createdCallback @ (index):1339\r\nnewCallback @ interop_support.js:38\r\nregisterElement @ interop_support.js:64\r\nwindow.Polymer @ (index):136\r\n(anonymous function) @ (index):8586\r\n(anonymous function) @ (index):8670\r\n```\r\nAfter repairing the style imports this exception disappears. \r\nThe reason for this to happen is an empty ```<style is=\"custom-style\" include=\"shared-styles\"></style>```\r\nwithout \r\n```<link rel=\"import\" href=\"styles/shared-styles.html\">```\r\nin scope.\r\n\r\nI would suggest improving the error messages\r\n"},"comment":{"url":"https://api.github.com/repos/Polymer/polymer/issues/comments/151171167","html_url":"https://github.com/Polymer/polymer/issues/2457#issuecomment-151171167","issue_url":"https://api.github.com/repos/Polymer/polymer/issues/2457","id":151171167,"user":{"login":"marcus7777","id":6314260,"avatar_url":"https://avatars.githubusercontent.com/u/6314260?v=3","gravatar_id":"","url":"https://api.github.com/users/marcus7777","html_url":"https://github.com/marcus7777","followers_url":"https://api.github.com/users/marcus7777/followers","following_url":"https://api.github.com/users/marcus7777/following{/other_user}","gists_url":"https://api.github.com/users/marcus7777/gists{/gist_id}","starred_url":"https://api.github.com/users/marcus7777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcus7777/subscriptions","organizations_url":"https://api.github.com/users/marcus7777/orgs","repos_url":"https://api.github.com/users/marcus7777/repos","events_url":"https://api.github.com/users/marcus7777/events{/privacy}","received_events_url":"https://api.github.com/users/marcus7777/received_events","type":"User","site_admin":false},"created_at":"2015-10-26T15:19:44Z","updated_at":"2015-10-26T15:19:44Z","body":":+1: "}}