{"action":"created","issue":{"url":"https://api.github.com/repos/madebymany/sir-trevor-js/issues/316","labels_url":"https://api.github.com/repos/madebymany/sir-trevor-js/issues/316/labels{/name}","comments_url":"https://api.github.com/repos/madebymany/sir-trevor-js/issues/316/comments","events_url":"https://api.github.com/repos/madebymany/sir-trevor-js/issues/316/events","html_url":"https://github.com/madebymany/sir-trevor-js/issues/316","id":60711244,"number":316,"title":"Error: Cannot set property 'dropArea' of undefined","user":{"login":"jakemmarsh","id":2916671,"avatar_url":"https://avatars.githubusercontent.com/u/2916671?v=3","gravatar_id":"","url":"https://api.github.com/users/jakemmarsh","html_url":"https://github.com/jakemmarsh","followers_url":"https://api.github.com/users/jakemmarsh/followers","following_url":"https://api.github.com/users/jakemmarsh/following{/other_user}","gists_url":"https://api.github.com/users/jakemmarsh/gists{/gist_id}","starred_url":"https://api.github.com/users/jakemmarsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakemmarsh/subscriptions","organizations_url":"https://api.github.com/users/jakemmarsh/orgs","repos_url":"https://api.github.com/users/jakemmarsh/repos","events_url":"https://api.github.com/users/jakemmarsh/events{/privacy}","received_events_url":"https://api.github.com/users/jakemmarsh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-11T18:57:50Z","updated_at":"2015-03-11T21:00:14Z","closed_at":null,"body":"I'm installing sir-trevor via npm and packaging via browserify. The relevant lines:\r\n\r\npackage.json: `\"sir-trevor\": \"^0.5.0-beta3\"` (as a dependency)\r\nEditor.jsx (React component): `var SirTrevor    = require('sir-trevor');`\r\n\r\nHowever, once I compile/run this code, I get the following error and stack trace:\r\n\r\n```\r\n/Users/jakemarsh/Repos/acadeME/node_modules/sir-trevor/src/helpers/event.js:27\r\n$.fn.dropArea = function(){\r\n              ^\r\nTypeError: Cannot set property 'dropArea' of undefined\r\n    at Object.<anonymous> (/Users/jakemarsh/Repos/acadeME/node_modules/sir-trevor/src/helpers/event.js:27:15)\r\n    at Module._compile (module.js:460:26)\r\n    at Object.Module._extensions..js (module.js:478:10)\r\n    at Module.load (module.js:355:32)\r\n    at Function.Module._load (module.js:310:12)\r\n    at Module.require (module.js:365:17)\r\n    at require (module.js:384:17)\r\n    at Object.<anonymous> (/Users/jakemarsh/Repos/acadeME/node_modules/sir-trevor/src/index.js:10:1)\r\n    at Module._compile (module.js:460:26)\r\n    at Object.Module._extensions..js (module.js:478:10)\r\nProgram node server.js exited with code 1\r\n```\r\n\r\nI'm not sure why this would be. Both my project and sir-trevor have jQuery as a dependency, and it's correctly required. I've tried using `console.log`, and confirmed that `$` is an object at the time this line is called. `$.fn`, however, is undefined.\r\n\r\nAny ideas?"},"comment":{"url":"https://api.github.com/repos/madebymany/sir-trevor-js/issues/comments/78370428","html_url":"https://github.com/madebymany/sir-trevor-js/issues/316#issuecomment-78370428","issue_url":"https://api.github.com/repos/madebymany/sir-trevor-js/issues/316","id":78370428,"user":{"login":"zgryw","id":264335,"avatar_url":"https://avatars.githubusercontent.com/u/264335?v=3","gravatar_id":"","url":"https://api.github.com/users/zgryw","html_url":"https://github.com/zgryw","followers_url":"https://api.github.com/users/zgryw/followers","following_url":"https://api.github.com/users/zgryw/following{/other_user}","gists_url":"https://api.github.com/users/zgryw/gists{/gist_id}","starred_url":"https://api.github.com/users/zgryw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zgryw/subscriptions","organizations_url":"https://api.github.com/users/zgryw/orgs","repos_url":"https://api.github.com/users/zgryw/repos","events_url":"https://api.github.com/users/zgryw/events{/privacy}","received_events_url":"https://api.github.com/users/zgryw/received_events","type":"User","site_admin":false},"created_at":"2015-03-11T21:00:14Z","updated_at":"2015-03-11T21:00:14Z","body":"For me it sounds like your `$` isn't really jQuery, but I'm gonna look at your project at get back to you."}}