-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot specify cloud file string using ES Module #7559
Comments
Thanks for opening this issue!
|
Closed via #7560 |
@Moumouls Can we merge #7560 again? Your comment led to a revert, but since Parse Server 6 supports an async start, the issue your mentioned should be solved and we can merge this, right? There is also #7914 and #8232, but I believe that the issue here hasn't been addressed in these. If so, then we'd just have to reopen #7560 and merge, maybe with some slight modifications. |
@dblythy Is this issue already resolved? |
I was able to reproduce the issue with Parse Server 6.5.0-beta.1 where setting a ESM for the
Issue reopened. |
The fix integrated in #7560 relies on
|
The variable I was able to workaround this by hardcoding the value in my K8S deployment where I actually start node directly like this:
and then the parse server starts again. |
I can confirm that after switching the K8S deployment to use Now that I think about it it makes sense, as starting the app directly via |
@mman you've saved me a lot of time with this. I definitely agree with you on documenting this somewhere. |
New Issue Checklist
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
4.10.3
MacOS
Localhost
The text was updated successfully, but these errors were encountered: