{"action":"closed","issue":{"url":"https://api.github.com/repos/sebsylvester/parse-server-mailgun/issues/1","repository_url":"https://api.github.com/repos/sebsylvester/parse-server-mailgun","labels_url":"https://api.github.com/repos/sebsylvester/parse-server-mailgun/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/sebsylvester/parse-server-mailgun/issues/1/comments","events_url":"https://api.github.com/repos/sebsylvester/parse-server-mailgun/issues/1/events","html_url":"https://github.com/sebsylvester/parse-server-mailgun/issues/1","id":167251687,"number":1,"title":"TypeError: _.extend is not a function","user":{"login":"majidhassan","id":18425522,"avatar_url":"https://avatars.githubusercontent.com/u/18425522?v=3","gravatar_id":"","url":"https://api.github.com/users/majidhassan","html_url":"https://github.com/majidhassan","followers_url":"https://api.github.com/users/majidhassan/followers","following_url":"https://api.github.com/users/majidhassan/following{/other_user}","gists_url":"https://api.github.com/users/majidhassan/gists{/gist_id}","starred_url":"https://api.github.com/users/majidhassan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/majidhassan/subscriptions","organizations_url":"https://api.github.com/users/majidhassan/orgs","repos_url":"https://api.github.com/users/majidhassan/repos","events_url":"https://api.github.com/users/majidhassan/events{/privacy}","received_events_url":"https://api.github.com/users/majidhassan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-07-24T20:12:21Z","updated_at":"2016-07-25T13:14:31Z","closed_at":"2016-07-25T13:14:31Z","body":"Hey,\r\n\r\nI've bee using this adapter for my emails with parse-server hosted on DigitalOcean. It's been working fine, until today with a fresh parse-server installation I started getting the following error:\r\n\r\n```\r\nparse-server-wrapper-0 TypeError: _.extend is not a function\r\nparse-server-wrapper-0     at Object.<anonymous> (/usr/lib/node_modules/parse-server-mailgun/node_modules/cheerio/lib/cheerio.js:88:3)\r\nparse-server-wrapper-0     at Module._compile (module.js:409:26)\r\nparse-server-wrapper-0     at Object.Module._extensions..js (module.js:416:10)\r\nparse-server-wrapper-0     at Module.load (module.js:343:32)\r\nparse-server-wrapper-0     at Function.Module._load (module.js:300:12)\r\nparse-server-wrapper-0     at Function._load (/usr/lib/node_modules/pm2/node_modules/pmx/lib/transaction.js:62:21)\r\nparse-server-wrapper-0     at Module.require (module.js:353:17)\r\nparse-server-wrapper-0     at require (internal/module.js:12:17)\r\nparse-server-wrapper-0     at Object.<anonymous> (/usr/lib/node_modules/parse-server-mailgun/node_modules/cheerio/index.js:5:28)\r\nparse-server-wrapper-0     at Module._compile (module.js:409:26)\r\n```\r\n\r\nThis is my ecosystem.json run with pm2.\r\n\r\n```\r\n{\r\n  \"apps\" : [{\r\n    \"name\"        : \"parse-server-wrapper\",\r\n    \"script\"      : \"/usr/bin/parse-server\",\r\n    \"watch\"       : false,\r\n    \"merge_logs\"  : true,\r\n    \"cwd\"         : \"/home/parse\",\r\n    \"env\": {\r\n      \"PARSE_SERVER_CLOUD_CODE_MAIN\": \"/home/parse/cloud/main.js\",\r\n      \"PARSE_SERVER_DATABASE_URI\": dburi\",\r\n      \"PARSE_SERVER_APPLICATION_ID\": \"appid\",\r\n      \"PARSE_SERVER_MASTER_KEY\": \"masterkey\",\r\n      \"PARSE_PUBLIC_SERVER_URL\": \"serverurl\",\r\n      \"PARSE_SERVER_MOUNT_PATH\": \"/parse\",\r\n      \"VERBOSE\": \"1\",\r\n      \"PARSE_SERVER_APP_NAME\": \"appname\",\r\n      \"PARSE_SERVER_VERIFY_USER_EMAILS\": true,\r\n      \"PARSE_SERVER_EMAIL_ADAPTER\": {\r\n          \"module\": \"parse-server-mailgun\",\r\n          \"options\": {\r\n            \"fromAddress\": \"noreply@example.com\",\r\n            \"domain\": \"example.com\",\r\n            \"apiKey\": \"key-apikey\",\r\n            \"templates\": {\r\n              \"passwordResetEmail\": {\r\n                \"subject\": \"Reset your password\",\r\n                \"pathPlainText\": \"/usr/lib/node_modules/parse-server/public_html/password_reset_email.txt\",\r\n                \"pathHtml\": \"/usr/lib/node_modules/parse-server/public_html/password_reset_email.html\"\r\n              },\r\n              \"verificationEmail\": {\r\n                \"subject\": \"Confirm your account\",\r\n                \"pathPlainText\": \"/usr/lib/node_modules/parse-server/public_html/verification_email.txt\",\r\n                \"pathHtml\": \"/usr/lib/node_modules/parse-server/public_html/verification_email.html\"\r\n              }\r\n            }\r\n          }\r\n      },\r\n      \"PARSE_SERVER_PREVENT_LOGIN_WITH_UNVERIFIED_EMAIL\": true\r\n    }\r\n  }, {\r\n    \"name\"        : \"parse-dashboard-wrapper\",\r\n    \"script\"      : \"/usr/bin/parse-dashboard\",\r\n    \"watch\"       : false,\r\n    \"merge_logs\"  : true,\r\n    \"cwd\"         : \"/home/parse\",\r\n    \"env\": {\r\n    ... dashboard stuff\r\n    }\r\n  }]\r\n}\r\n```\r\n\r\nEnvironment:\r\n\r\nparse-server 2.217\r\nparse-server-mailgun 1.0.2"}}
{"actor":{"display_login":"sebsylvester"}}