{"action":"created","issue":{"url":"https://api.github.com/repos/Workiva/dart_to_js_script_rewriter/issues/18","labels_url":"https://api.github.com/repos/Workiva/dart_to_js_script_rewriter/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/Workiva/dart_to_js_script_rewriter/issues/18/comments","events_url":"https://api.github.com/repos/Workiva/dart_to_js_script_rewriter/issues/18/events","html_url":"https://github.com/Workiva/dart_to_js_script_rewriter/issues/18","id":108510682,"number":18,"title":"\" zero or multiple dart scripts\" error","user":{"login":"proteme","id":1407592,"avatar_url":"https://avatars.githubusercontent.com/u/1407592?v=3","gravatar_id":"","url":"https://api.github.com/users/proteme","html_url":"https://github.com/proteme","followers_url":"https://api.github.com/users/proteme/followers","following_url":"https://api.github.com/users/proteme/following{/other_user}","gists_url":"https://api.github.com/users/proteme/gists{/gist_id}","starred_url":"https://api.github.com/users/proteme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/proteme/subscriptions","organizations_url":"https://api.github.com/users/proteme/orgs","repos_url":"https://api.github.com/users/proteme/repos","events_url":"https://api.github.com/users/proteme/events{/privacy}","received_events_url":"https://api.github.com/users/proteme/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-27T03:27:59Z","updated_at":"2015-11-20T15:44:49Z","closed_at":null,"body":"Even though I have reference to a single dart script, I get the following error on \"release\" build.\r\n\r\n    [Error from ScriptCompactor on Project|web/index.html]:\r\n    Found either zero or multiple dart scripts in the entry point `web/index.html`. Exactly one was expected.\r\n\r\nI do have references to two other JavaScript scripts in the same index.html. \r\n\r\nI am not sure if I am doing something wrong, or this is a bug."},"comment":{"url":"https://api.github.com/repos/Workiva/dart_to_js_script_rewriter/issues/comments/158437332","html_url":"https://github.com/Workiva/dart_to_js_script_rewriter/issues/18#issuecomment-158437332","issue_url":"https://api.github.com/repos/Workiva/dart_to_js_script_rewriter/issues/18","id":158437332,"user":{"login":"jakemac53","id":984921,"avatar_url":"https://avatars.githubusercontent.com/u/984921?v=3","gravatar_id":"","url":"https://api.github.com/users/jakemac53","html_url":"https://github.com/jakemac53","followers_url":"https://api.github.com/users/jakemac53/followers","following_url":"https://api.github.com/users/jakemac53/following{/other_user}","gists_url":"https://api.github.com/users/jakemac53/gists{/gist_id}","starred_url":"https://api.github.com/users/jakemac53/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakemac53/subscriptions","organizations_url":"https://api.github.com/users/jakemac53/orgs","repos_url":"https://api.github.com/users/jakemac53/repos","events_url":"https://api.github.com/users/jakemac53/events{/privacy}","received_events_url":"https://api.github.com/users/jakemac53/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T15:44:49Z","updated_at":"2015-11-20T15:44:49Z","body":"ah, the issue here is the `dart_to_js_script_rewriter` transformer should come after the polymer transformer. The `ScriptCompactor` is one of the Polymer phases, it looks ing your entry point html for dart script tags and html imports, and bootstraps the app with a single dart file that imports all reachable dart files."}}