-
Notifications
You must be signed in to change notification settings - Fork 161
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
The server refuses to start if one of the endpoint methods is called "delete" #7460
Comments
Probably has to do with |
Yes, it does. I can confirm that So let's document the limitation for now. |
Flow seems to generate the endpoints with syntax similar to: export function delete() {} which won't work if the function name is a reserved word, but you can get around it by just using different syntax, so this should be fixable. This would work just fine in ES module: function _delete() {}
export { _delete as delete }; And it can then be called like: import * as viewEndpoint from './my-module.js';
viewEndpoint.delete(); |
This makes the server refuse to start:
Changing the name to anything else fixes the issue and the server starts up fine:
Output with the issue:
The text was updated successfully, but these errors were encountered: