{"action":"created","issue":{"url":"https://api.github.com/repos/Polymer/polymer-cli/issues/512","repository_url":"https://api.github.com/repos/Polymer/polymer-cli","labels_url":"https://api.github.com/repos/Polymer/polymer-cli/issues/512/labels{/name}","comments_url":"https://api.github.com/repos/Polymer/polymer-cli/issues/512/comments","events_url":"https://api.github.com/repos/Polymer/polymer-cli/issues/512/events","html_url":"https://github.com/Polymer/polymer-cli/issues/512","id":195543938,"number":512,"title":"polymer build error parsing script 'x' at NaN:NaN undefined","user":{"login":"elonmallin","id":9149793,"avatar_url":"https://avatars.githubusercontent.com/u/9149793?v=3","gravatar_id":"","url":"https://api.github.com/users/elonmallin","html_url":"https://github.com/elonmallin","followers_url":"https://api.github.com/users/elonmallin/followers","following_url":"https://api.github.com/users/elonmallin/following{/other_user}","gists_url":"https://api.github.com/users/elonmallin/gists{/gist_id}","starred_url":"https://api.github.com/users/elonmallin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elonmallin/subscriptions","organizations_url":"https://api.github.com/users/elonmallin/orgs","repos_url":"https://api.github.com/users/elonmallin/repos","events_url":"https://api.github.com/users/elonmallin/events{/privacy}","received_events_url":"https://api.github.com/users/elonmallin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-12-14T14:25:13Z","updated_at":"2016-12-14T22:56:54Z","closed_at":null,"body":"### Description\r\nIf you do `polymer build` and you have this syntax error:\r\n```\r\nproperties: {\r\n  someProp: {\r\n    type: Boolean,\r\n    type: false, // Should be 'value' not 'type'!\r\n  }\r\n}\r\n```\r\nYou will be met with and error as shown below.\r\n\r\nFiled this issue in the wrong place first [Polymer/polymer-analyzer#408](https://github.com/Polymer/polymer-analyzer/issues/408#issuecomment-267038767) and got a comment that it is because of `hydrolysis`.\r\n\r\n### Versions & Environment\r\n- Polymer CLI: 0.17.0\r\n- node: v4.3.1\r\n- Operating System: Windows 10 Pro\r\n\r\n#### Steps to Reproduce\r\nRun `polymer build` and have a component with the script error like in the description.\r\n\r\n#### Expected Results\r\nNo error and finished build.\r\n\r\n#### Actual Results\r\n```\r\nerror:   Promise rejection: Error: Error parsing script in x.html at NaN:NaN\r\nundefined\r\nerror:   Error: Error parsing script in x.html at NaN:NaN\r\nundefined\r\n    at Analyzer._processScript (...\\node_modules\\hydrolysis\\lib\\analyzer.js:331:36)\r\n    at ...\\node_modules\\hydrolysis\\lib\\analyzer.js:301:44\r\n    at Array.forEach (native)\r\n    at Analyzer._processScripts (...\\node_modules\\hydrolysis\\lib\\analyzer.js:300:21)\r\n    at Analyzer._parseHTML (...\\node_modules\\hydrolysis\\lib\\analyzer.js:161:39)\r\n    at null._onTimeout (...\\node_modules\\hydrolysis\\lib\\analyzer.js:125:39)\r\n    at Timer.listOnTimeout (timers.js:92:15)\r\n```"},"comment":{"url":"https://api.github.com/repos/Polymer/polymer-cli/issues/comments/267183327","html_url":"https://github.com/Polymer/polymer-cli/issues/512#issuecomment-267183327","issue_url":"https://api.github.com/repos/Polymer/polymer-cli/issues/512","id":267183327,"user":{"login":"FredKSchott","id":622227,"avatar_url":"https://avatars.githubusercontent.com/u/622227?v=3","gravatar_id":"","url":"https://api.github.com/users/FredKSchott","html_url":"https://github.com/FredKSchott","followers_url":"https://api.github.com/users/FredKSchott/followers","following_url":"https://api.github.com/users/FredKSchott/following{/other_user}","gists_url":"https://api.github.com/users/FredKSchott/gists{/gist_id}","starred_url":"https://api.github.com/users/FredKSchott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FredKSchott/subscriptions","organizations_url":"https://api.github.com/users/FredKSchott/orgs","repos_url":"https://api.github.com/users/FredKSchott/repos","events_url":"https://api.github.com/users/FredKSchott/events{/privacy}","received_events_url":"https://api.github.com/users/FredKSchott/received_events","type":"User","site_admin":false},"created_at":"2016-12-14T22:56:54Z","updated_at":"2016-12-14T22:56:54Z","body":"@filipproch mind filing a new issue and copy and pasting the relevant bits from this conversation into it? I want to separate this from @elonmallin's issue with the syntax error.\r\n\r\nCan you include your `.../src/elements/x.html` file in a gist as well? I think there might be a hard-to-spot error in how that file is written that our analyzer isn't able to handle. "}}
{"actor":{"display_login":"FredKSchott"}}