Skip to content

Migration Guide to Parse Server 6 issues #8383

Open
@mman

Description

@mman

New Issue Checklist

Issue 1 Description

I am following the migration guide to Parse Server 6, and encountered couple of issues.

I have changed my code to use simpler initialisation:

const ParseServer = require('parse-server');

And I get the following error:

const api = new ParseServer({...});
            ^

TypeError: ParseServer is not a constructor

I still have to use the old method of const ParseServer = require('parse-server').ParseServer; to get the proper constructor.

Issue 2 Description

Trying to start the parse server in async way via:

await api.start();

Produces the following error:

  await api.start();
  ^^^^^

SyntaxError: await is only valid in async functions and the top level bodies of modules

I have to use the following workaround to actually produce async context on top level of my index.js:

(async function main () {
  await api.start();
})();

Server

  • Parse Server version: alpha

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:docsOnly change in the docs or README

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions