{"action":"created","issue":{"url":"https://api.github.com/repos/pubkey/broadcast-channel/issues/5","repository_url":"https://api.github.com/repos/pubkey/broadcast-channel","labels_url":"https://api.github.com/repos/pubkey/broadcast-channel/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/pubkey/broadcast-channel/issues/5/comments","events_url":"https://api.github.com/repos/pubkey/broadcast-channel/issues/5/events","html_url":"https://github.com/pubkey/broadcast-channel/issues/5","id":362198325,"node_id":"MDU6SXNzdWUzNjIxOTgzMjU=","number":5,"title":"Module not found when using import","user":{"login":"gabrielcolombo","id":16803034,"node_id":"MDQ6VXNlcjE2ODAzMDM0","avatar_url":"https://avatars1.githubusercontent.com/u/16803034?v=4","gravatar_id":"","url":"https://api.github.com/users/gabrielcolombo","html_url":"https://github.com/gabrielcolombo","followers_url":"https://api.github.com/users/gabrielcolombo/followers","following_url":"https://api.github.com/users/gabrielcolombo/following{/other_user}","gists_url":"https://api.github.com/users/gabrielcolombo/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrielcolombo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrielcolombo/subscriptions","organizations_url":"https://api.github.com/users/gabrielcolombo/orgs","repos_url":"https://api.github.com/users/gabrielcolombo/repos","events_url":"https://api.github.com/users/gabrielcolombo/events{/privacy}","received_events_url":"https://api.github.com/users/gabrielcolombo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-09-20T13:52:01Z","updated_at":"2018-10-04T17:09:35Z","closed_at":"2018-09-20T16:37:51Z","author_association":"NONE","body":"Using import BroadcastChannel from '...' throws an error on the browser console stating \"Could not find module 'broadcast-channel' from ...\" (Using it as a dependency on Ember.js)\r\n\r\nWhen trying it on Node, is states that \"Cannot find module babel-runtime/helpers/typeof\".\r\n\r\nNode - v.10.11.0\r\nEmber - v3.1\r\n\r\nHow can I proceed?"},"comment":{"url":"https://api.github.com/repos/pubkey/broadcast-channel/issues/comments/427097237","html_url":"https://github.com/pubkey/broadcast-channel/issues/5#issuecomment-427097237","issue_url":"https://api.github.com/repos/pubkey/broadcast-channel/issues/5","id":427097237,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzA5NzIzNw==","user":{"login":"pubkey","id":8926560,"node_id":"MDQ6VXNlcjg5MjY1NjA=","avatar_url":"https://avatars3.githubusercontent.com/u/8926560?v=4","gravatar_id":"","url":"https://api.github.com/users/pubkey","html_url":"https://github.com/pubkey","followers_url":"https://api.github.com/users/pubkey/followers","following_url":"https://api.github.com/users/pubkey/following{/other_user}","gists_url":"https://api.github.com/users/pubkey/gists{/gist_id}","starred_url":"https://api.github.com/users/pubkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pubkey/subscriptions","organizations_url":"https://api.github.com/users/pubkey/orgs","repos_url":"https://api.github.com/users/pubkey/repos","events_url":"https://api.github.com/users/pubkey/events{/privacy}","received_events_url":"https://api.github.com/users/pubkey/received_events","type":"User","site_admin":false},"created_at":"2018-10-04T17:09:35Z","updated_at":"2018-10-04T17:09:35Z","author_association":"OWNER","body":"@srounce \r\n- I did not think about people having workarrounds for this. I thought they might be first create an issue here before doing some hacks. Also hacky monkeypatches should not be handled by major version increments.\r\n- We have to compilation-targets, one for the es-module-syntax. One for the old require-syntax. This is common on most javascript-projects\r\n- There is a different entrypoint for es5-syntax so people can d `const bc= require('broadcast-channel')` instead of `const bc= require('broadcast-channel').default`.\r\n\r\n@gabrielcolombo So this looks more like a bug with ember than with the broadcast-channel. Browserify should handle the .js ending properly.\r\n\r\n \r\n"}}
{"actor":{"display_login":"pubkey"}}