Skip to content

cannot find SimpleMailgunAdapter after upgrading 2.2.6 #1442

Closed

Description

@jiawenzhang

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'

Activity

  1. jiawenzhang commented on Apr 9, 2016

    @jiawenzhang
    Author

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

  2. Bragegs commented on Apr 9, 2016

    @Bragegs
    Contributor

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

  3. jiawenzhang commented on Apr 9, 2016

    @jiawenzhang
    Author

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

  4. jiawenzhang commented on Apr 9, 2016

    @jiawenzhang
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions