opentrace-community / opentrace-cloud-functions

OpenTrace Cloud Functions. Reference implementation of the BlueTrace protocol.
https://bluetrace.io
GNU General Public License v3.0
273 stars 121 forks source link

Having issues deploying to firebase function #35

Closed Jayjerome closed 4 years ago

Jayjerome commented 4 years ago

Keep getting this error in command prompt...

> functions@ build C:\Users\Jerome\Videos\Tracer-1\functions
> tsc

src/config.ts:9:30 - error TS1011: An element access expression should take an argument.

9   regions: SUPPORTED_REGIONS[],

Found 1 error.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! functions@ build: `tsc`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the functions@ build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Jerome\AppData\Roaming\npm-cache\_logs\2020-04-23T14_37_32_030Z-debug.log

Error: functions predeploy error: Command terminated with non-zero exit code2
NerdFaisal404 commented 4 years ago

please set region in config file regions: ["asia-east2"],

Jayjerome commented 4 years ago

@NerdFaisal404 I've tried that still didn't work regions: SUPPORTED_REGIONS["asian-east2]

Hoangtho11188 commented 4 years ago

@NerdFaisal404 I've tried that still didn't work regions: SUPPORTED_REGIONS["asian-east2]

correct is "asia-east2" :D