Open
Description
New Issue Checklist
- I am not disclosing a vulnerability.
- I am not just asking a question.
- I have searched through existing issues.
- I can reproduce the issue with the latest version of Parse Server.
Issue Description
When using Parse Server with "type": "module", it is not possible to set a cloud string, as it returns Must use import to load ES Module
.
Steps to reproduce
Create a Parse Server with "type": "module" (such as parse-community/parse-server-example#400), set cloud file string
Actual Outcome
Error: Must use import to load ES Module: /Users/daniel/GitHub/parse-server-example/cloud/main.js require() of ES modules is not supported.
Expected Outcome
Cloud function to work
Workaround
() => import('./cloud/main.js'),
Environment
Server
- Parse Server version:
4.10.3
- Operating system:
MacOS
- Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc):
Localhost