Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot find SimpleMailgunAdapter after upgrading 2.2.6 #1442

Closed
jiawenzhang opened this issue Apr 9, 2016 · 4 comments
Closed

cannot find SimpleMailgunAdapter after upgrading 2.2.6 #1442

jiawenzhang opened this issue Apr 9, 2016 · 4 comments

Comments

@jiawenzhang
Copy link

After change "parse-server": "~2.2.5" to "parse-server": "~2.2.6" in package json and run

npm install and restart parse server, I keep getting the following error.

at Function.Module._resolveFilename (module.js:339:15)
    at Function.Module._load (module.js:290:25)
    at Function._load (/usr/lib/node_modules/pm2/node_modules/pmx/lib/transaction.js:62:21)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (/opt/wishlist-parse-server/index.js:15:28)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
Error: Cannot find module 'parse-server/lib/Adapters/Email/SimpleMailgunAdapter'
@jiawenzhang
Copy link
Author

And I noticed parse-server/lib/Adapters/Email/SimpleMailgunAdapter.js is gone. It is used to be there in 2.2.5

@Bragegs
Copy link
Contributor

Bragegs commented Apr 9, 2016

try:
emailAdapter: {
module: 'parse-server-simple-mailgun-adapter',
options: {
fromAddress: 'adress',
apiKey: 'key',
domain: 'domain',
}
}

@jiawenzhang
Copy link
Author

@Bragegs that's what I have in my index.js, still the same error

@jiawenzhang
Copy link
Author

ok, I fixed it.

removing
var SimpleMailgunAdapter = require('parse-server/lib/Adapters/Email/SimpleMailgunAdapter');
from index.js

fixed it. thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants