Skip to content
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

Not working functions deploy #537

Closed
maravondra opened this issue Jul 24, 2019 · 3 comments
Closed

Not working functions deploy #537

maravondra opened this issue Jul 24, 2019 · 3 comments

Comments

@maravondra
Copy link

Related issues

[REQUIRED] Version info

**node:8

**firebase-functions:2.3.0

*firebase-tools: *

**firebase-admin:7.3.0

[REQUIRED] Test case

Try to make a functions deploy: firebase deploy --only functions

{
  "name": "functions",
  "scripts": {
    "lint": "tslint --project tsconfig.json",
    "build": "tsc",
    "serve": "npm run build && firebase serve --only functions",
    "shell": "npm run build && firebase functions:shell",
    "start": "npm run shell",
    "deploy": "firebase deploy --only functions",
    "logs": "firebase functions:log"
  },
  "engines": {
    "node": "8"
  },
  "main": "lib/index.js",
  "dependencies": {
    "firebase-functions": "^2.3.0",
    "@google-cloud/firestore": "^1.3.0",
    "@google-cloud/logging": "^4.5.2",
    "firebase": "^5.9.1",
    "firebase-admin": "^7.3.0",
    "rich-logger-decorator": "^4.0.0",
    "uniqid": "^5.0.3",
    "uuid": "^3.3.2"
  },
  "devDependencies": {
    "tslint": "^5.12.0",
    "typescript": "^3.2.2",
    "firebase-functions-test": "^0.1.6",
    "mocha": "^6.1.4"
  },
  "private": true
}

[REQUIRED] Steps to reproduce

[REQUIRED] Expected behavior

Deploy done

[REQUIRED] Actual behavior

Deploy finish with error:

> functions@ build /Users/vondramarek/backend/backend/functions
> tsc

node_modules/firebase-functions/lib/function-configuration.d.ts:4:64 - error TS1005: ']' expected.

4 export declare const SUPPORTED_REGIONS: readonly ["us-central1", "us-east1", "us-east4", "europe-west1", "europe-west2", "asia-east2", "asia-northeast1"];
                                                                 ~

node_modules/firebase-functions/lib/function-configuration.d.ts:4:66 - error TS1134: Variable declaration expected.

4 export declare const SUPPORTED_REGIONS: readonly ["us-central1", "us-east1", "us-east4", "europe-west1", "europe-west2", "asia-east2", "asia-northeast1"];
                                                                   ~~~~~~~~~~

node_modules/firebase-functions/lib/function-configuration.d.ts:4:153 - error TS1005: ';' expected.

4 export declare const SUPPORTED_REGIONS: readonly ["us-central1", "us-east1", "us-east4", "europe-west1", "europe-west2", "asia-east2", "asia-northeast1"];
                                                                                                                                                          ~

node_modules/firebase-functions/lib/function-configuration.d.ts:16:61 - error TS1005: ']' expected.

16 export declare const VALID_MEMORY_OPTIONS: readonly ["128MB", "256MB", "512MB", "1GB", "2GB"];
                                                               ~

node_modules/firebase-functions/lib/function-configuration.d.ts:16:63 - error TS1134: Variable declaration expected.

16 export declare const VALID_MEMORY_OPTIONS: readonly ["128MB", "256MB", "512MB", "1GB", "2GB"];
                                                                 ~~~~~~~

node_modules/firebase-functions/lib/function-configuration.d.ts:16:93 - error TS1005: ';' expected.

16 export declare const VALID_MEMORY_OPTIONS: readonly ["128MB", "256MB", "512MB", "1GB", "2GB"];
                                                                                               ~


Found 6 errors.

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:
[2019-07-24T14_46_07_713Z-debug.log](https://github.com/firebase/firebase-functions/files/3427400/2019-07-24T14_46_07_713Z-debug.log)

Were you able to successfully deploy your functions?

@google-oss-bot
Copy link
Collaborator

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not have all the information required by the template. Looks like you forgot to fill out some sections. Please update the issue with more information.

@merlinnot
Copy link
Contributor

merlinnot commented Jul 24, 2019

Please see #523 and #404. You should simply update TypeScript to the latest version.

@thechenky
Copy link
Contributor

Thanks @merlinnot for jumping in! @maravondra I'm going to close this out as I'm sure the suggestion in this thread should resolve your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants