Skip to content

Cannot find module 'parse-server-simple-mailgun-adaptor' #4535

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

Closed
Polarbear2121 opened this issue Jan 31, 2018 · 4 comments
Closed

Cannot find module 'parse-server-simple-mailgun-adaptor' #4535

Polarbear2121 opened this issue Jan 31, 2018 · 4 comments

Comments

@Polarbear2121
Copy link

Parse Server 2.7.2

Error when running the index.js file.

Error: Cannot find module 'parse-server-simple-mailgun-adaptor'
at Function.Module._resolveFilename (module.js:555:15)
at Function.Module._load (module.js:482:25)
at Module.require (module.js:604:17)
at require (internal/module.js:11:18)
at loadAdapter (/home/ubuntu/parse-server-example/node_modules/parse-server/lib/Adapters/AdapterLoader.js:27:15)
at loadAdapter (/home/ubuntu/parse-server-example/node_modules/parse-server/lib/Adapters/AdapterLoader.js:34:12)
at getUserController (/home/ubuntu/parse-server-example/node_modules/parse-server/lib/Controllers/index.js:160:65)
at Object.getControllers (/home/ubuntu/parse-server-example/node_modules/parse-server/lib/Controllers/index.js:88:26)
at new ParseServer (/home/ubuntu/parse-server-example/node_modules/parse-server/lib/ParseServer.js:136:40)
at new _ParseServer (/home/ubuntu/parse-server-example/node_modules/parse-server/lib/index.js:54:18)

@dplewis
Copy link
Member

dplewis commented Feb 1, 2018

Looks like its spelled wrong adapter

@Polarbear2121
Copy link
Author

Thank you for the hint. I looked to an old installation of Parse_Server and I noticed that we have a module named parse-server-simple-mailgun-adapter under node_modules, however, in version 2.7.2 that module doesn't exist and now what we have is under node_modules -> @ parse -> simple-mailgun-adaptor. I changed my index file to:

emailAdapter: { module:'@parse/simple-mailgun-adapter',

And, it compiled ok. I haven't done any tests yet.

@dplewis
Copy link
Member

dplewis commented Feb 1, 2018

Sweet!

@dplewis dplewis closed this as completed Feb 1, 2018
@ArashM98
Copy link

tnx . solved my problem

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

3 participants