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:
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
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:
parse-server/6.0.0.md
Line 28 in 76c7a6f
And I get the following error:
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:
Produces the following error:
I have to use the following workaround to actually produce async context on top level of my
index.js:Server