parse-community / parse-community/parse-server

Migration Guide to Parse Server 6 issues

Open
#8,383 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

type:docs
Dominant language
JavaScript
Stars
21.4k
Forks
4.8k
Avg merge
7h 45m
Merged PRs (30d)
11

Description

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:

https://github.com/parse-community/parse-server/blob/76c7a6fbd06693229c1906d68117713bc0a18d42/6.0.0.md?plain=1#L28

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked 6.0.0.md migration guide at line 28 and compare its ParseServer import with the reported index.js usage. Reproduce both initialization and startup examples in a Parse Server 6 setup; done means the guide's examples use a supported constructor import and valid async startup context.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
backend, documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.