{"action":"closed","issue":{"url":"https://api.github.com/repos/Polymer/tools/issues/721","repository_url":"https://api.github.com/repos/Polymer/tools","labels_url":"https://api.github.com/repos/Polymer/tools/issues/721/labels{/name}","comments_url":"https://api.github.com/repos/Polymer/tools/issues/721/comments","events_url":"https://api.github.com/repos/Polymer/tools/issues/721/events","html_url":"https://github.com/Polymer/tools/issues/721","id":363335011,"node_id":"MDU6SXNzdWUzNjMzMzUwMTE=","number":721,"title":"[bundler] Bundled shell does not re-export ids used by multiple fragments; './x-app.js' does not provide an export named 'directive'","user":{"login":"keanulee","id":1319720,"node_id":"MDQ6VXNlcjEzMTk3MjA=","avatar_url":"https://avatars1.githubusercontent.com/u/1319720?v=4","gravatar_id":"","url":"https://api.github.com/users/keanulee","html_url":"https://github.com/keanulee","followers_url":"https://api.github.com/users/keanulee/followers","following_url":"https://api.github.com/users/keanulee/following{/other_user}","gists_url":"https://api.github.com/users/keanulee/gists{/gist_id}","starred_url":"https://api.github.com/users/keanulee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keanulee/subscriptions","organizations_url":"https://api.github.com/users/keanulee/orgs","repos_url":"https://api.github.com/users/keanulee/repos","events_url":"https://api.github.com/users/keanulee/events{/privacy}","received_events_url":"https://api.github.com/users/keanulee/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"usergenic","id":578,"node_id":"MDQ6VXNlcjU3OA==","avatar_url":"https://avatars2.githubusercontent.com/u/578?v=4","gravatar_id":"","url":"https://api.github.com/users/usergenic","html_url":"https://github.com/usergenic","followers_url":"https://api.github.com/users/usergenic/followers","following_url":"https://api.github.com/users/usergenic/following{/other_user}","gists_url":"https://api.github.com/users/usergenic/gists{/gist_id}","starred_url":"https://api.github.com/users/usergenic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usergenic/subscriptions","organizations_url":"https://api.github.com/users/usergenic/orgs","repos_url":"https://api.github.com/users/usergenic/repos","events_url":"https://api.github.com/users/usergenic/events{/privacy}","received_events_url":"https://api.github.com/users/usergenic/received_events","type":"User","site_admin":false},"assignees":[{"login":"usergenic","id":578,"node_id":"MDQ6VXNlcjU3OA==","avatar_url":"https://avatars2.githubusercontent.com/u/578?v=4","gravatar_id":"","url":"https://api.github.com/users/usergenic","html_url":"https://github.com/usergenic","followers_url":"https://api.github.com/users/usergenic/followers","following_url":"https://api.github.com/users/usergenic/following{/other_user}","gists_url":"https://api.github.com/users/usergenic/gists{/gist_id}","starred_url":"https://api.github.com/users/usergenic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usergenic/subscriptions","organizations_url":"https://api.github.com/users/usergenic/orgs","repos_url":"https://api.github.com/users/usergenic/repos","events_url":"https://api.github.com/users/usergenic/events{/privacy}","received_events_url":"https://api.github.com/users/usergenic/received_events","type":"User","site_admin":false}],"milestone":null,"comments":8,"created_at":"2018-09-24T21:54:45Z","updated_at":"2018-11-15T19:03:55Z","closed_at":"2018-11-15T19:03:54Z","author_association":"MEMBER","body":"Setup:\r\n- Shell - my-app.js\r\n- Multiple fragments - my-view1.js and my-view2.js\r\n\r\nIf my-view1 uses a directive (e.g. `repeat`):\r\n```js\r\nimport { repeat } from 'lit-html/directives/repeat.js';\r\n```\r\n\r\nAnd my-view2 uses another directive (e.g. `unsafeHTML`):\r\n```js\r\nimport { unsafeHTML } from 'lit-html/directives/unsafe-html.js';\r\n```\r\n\r\nThen both fragments will try to import `directive` from my-app, but my-app doesn't export it.\r\n\r\nRepro:\r\n\r\n```bash\r\n$ git clone -b lit-element https://github.com/Polymer/shop.git\r\n$ cd shop\r\n$ npm i\r\n$ polymer build\r\n$ polymer serve build/esm-bundled\r\n```\r\n\r\nNavigate to the detail view (e.g. http://localhost:8081/detail/ladies_outerwear/Ladies+Pullover+L+S+Hood). Note the console error\r\n\r\n```\r\nshop-app.js:483 Uncaught (in promise) SyntaxError: The requested module './shop-app.js' does not provide an export named 'directive'\r\n```"}}
{"actor":{"display_login":"keanulee"}}