-
Notifications
You must be signed in to change notification settings - Fork 160
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
Emulator : SyntaxError: await is only valid in async functions and the top level bodies of modules #581
Labels
Comments
One of the error suggestions is to
|
jauntybrain
added
bug
Something isn't working
extension: firestore-stripe-payments
labels
Feb 2, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
invertase/[email protected]
Describe the bug
In the Firebase Emulator locally, i encounter the following error when the function createCustomer is run;
I have tried running different node versions 16 and 18, that did not help.
I'm reluctant to edit the source file and wrap the await in a async func.
The only thing that resolved the issue was to downgrade to "stripe/[email protected]".
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
stripe listen --api-key rk_test_*********** --forward-to http://127.0.0.1:5001/{project-name}/{firebase-server}/ext-firestore-stripe-payments-handleWebhookEvents
firebase ext:install stripe/firestore-stripe-payments --project={project-name}
firebase emulators:start --project={project-name}
npm run dev
By saving a Product the 'product.updated' event will be trigger from Sprite and received by the invertase/firestore-stripe-payments Extension, where it fails.
The text was updated successfully, but these errors were encountered: