{"action":"created","issue":{"url":"https://api.github.com/repos/jetpack-labs/menuitem/issues/3","labels_url":"https://api.github.com/repos/jetpack-labs/menuitem/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/jetpack-labs/menuitem/issues/3/comments","events_url":"https://api.github.com/repos/jetpack-labs/menuitem/issues/3/events","html_url":"https://github.com/jetpack-labs/menuitem/issues/3","id":91482953,"number":3,"title":"error when requiring menuitem","user":{"login":"nikolas","id":59292,"avatar_url":"https://avatars.githubusercontent.com/u/59292?v=3","gravatar_id":"","url":"https://api.github.com/users/nikolas","html_url":"https://github.com/nikolas","followers_url":"https://api.github.com/users/nikolas/followers","following_url":"https://api.github.com/users/nikolas/following{/other_user}","gists_url":"https://api.github.com/users/nikolas/gists{/gist_id}","starred_url":"https://api.github.com/users/nikolas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikolas/subscriptions","organizations_url":"https://api.github.com/users/nikolas/orgs","repos_url":"https://api.github.com/users/nikolas/repos","events_url":"https://api.github.com/users/nikolas/events{/privacy}","received_events_url":"https://api.github.com/users/nikolas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-27T15:24:23Z","updated_at":"2015-06-27T16:06:40Z","closed_at":null,"body":"Using menuitem 0.0.4 and jpm 1.0.0, I'm calling menuitem like this:\r\n\r\n```js\r\n        var menuitem = require(\"menuitem\").Menuitem({\r\n            id: 'librejs_settings',\r\n            menuid: 'menu_ToolsPopup',\r\n            label: 'LibreJS Whitelist',\r\n            onCommand: function() {\r\n                settings_tab.settingsManager.open();\r\n            },\r\n            insertBefore: \"menu_pageInfo\"\r\n        });\r\n```\r\n\r\nand I'm getting this error:\r\n\r\n```\r\nconsole.error: librejs: \r\n  Message: Module `menuitem` is not found at resource://gre/modules/commonjs/menuitem.js\r\n  Stack:\r\n    exports.UI.init@resource://jid1-ktlzuoiikvffew-at-jetpack/lib/ui.js:140:24\r\n```\r\n\r\nIt's probably some stupid mistake I'm making somewhere."},"comment":{"url":"https://api.github.com/repos/jetpack-labs/menuitem/issues/comments/116091925","html_url":"https://github.com/jetpack-labs/menuitem/issues/3#issuecomment-116091925","issue_url":"https://api.github.com/repos/jetpack-labs/menuitem/issues/3","id":116091925,"user":{"login":"Ge-Bra","id":12617169,"avatar_url":"https://avatars.githubusercontent.com/u/12617169?v=3","gravatar_id":"","url":"https://api.github.com/users/Ge-Bra","html_url":"https://github.com/Ge-Bra","followers_url":"https://api.github.com/users/Ge-Bra/followers","following_url":"https://api.github.com/users/Ge-Bra/following{/other_user}","gists_url":"https://api.github.com/users/Ge-Bra/gists{/gist_id}","starred_url":"https://api.github.com/users/Ge-Bra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ge-Bra/subscriptions","organizations_url":"https://api.github.com/users/Ge-Bra/orgs","repos_url":"https://api.github.com/users/Ge-Bra/repos","events_url":"https://api.github.com/users/Ge-Bra/events{/privacy}","received_events_url":"https://api.github.com/users/Ge-Bra/received_events","type":"User","site_admin":false},"created_at":"2015-06-27T16:06:40Z","updated_at":"2015-06-27T16:06:40Z","body":"Have you read this?\r\nhttps://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials/Using_third-party_modules_%28jpm%29"}}