luizkc / firebase-discord-oauth2-example

An example of how to setup Discord, or any external oAuth2 provider, with your Firebase app.
https://us-central1-discord-oauth-demo.cloudfunctions.net/api/login
MIT License
117 stars 14 forks source link

firebase deploy error #14

Open tunglam87 opened 1 year ago

tunglam87 commented 1 year ago

when I sun firebase deploy, it show me the following error

=== Deploying to 'auth-sample'...

i deploying functions i functions: preparing codebase default for deployment i functions: ensuring required API cloudfunctions.googleapis.com is enabled... i functions: ensuring required API cloudbuild.googleapis.com is enabled... i artifactregistry: ensuring required API artifactregistry.googleapis.com is enabled... ✔ artifactregistry: required API artifactregistry.googleapis.com is enabled ✔ functions: required API cloudbuild.googleapis.com is enabled ✔ functions: required API cloudfunctions.googleapis.com is enabled

Error: Failed to load function definition from source: Failed to generate manifest from function source: SyntaxError: Unexpected token 'export'