firebase-functions-typescript-starter icon indicating copy to clipboard operation
firebase-functions-typescript-starter copied to clipboard

Error on `npm run serve:dev`

Open Utkarshbhimte opened this issue 4 years ago • 1 comments

Node version:

v12.18.2

package.json

"dependencies": {
    "cors": "2.8.4",
    "firebase-admin": "^9.1.0",
    "firebase-functions": "^3.9.1"
  },
  "devDependencies": {
    "tslint": "5.11.0",
    "typescript": "3.0.3",
    "concurrently": "4.0.1",
    "@types/cors": "2.8.4",
    "@types/chai": "4.1.4",
    "@types/mocha": "5.2.5",
    "@types/sinon": "5.0.2",
    "@types/sinon-chai": "3.2.0",
    "chai": "4.1.2",
    "mocha": "5.2.0",
    "ts-node": "7.0.1",
    "sinon": "6.1.5",
    "sinon-chai": "3.2.0",
    "rollup": "0.65.0",
    "rollup-plugin-node-resolve": "3.3.0",
    "rimraf": "2.6.2"
  },
18:31:47 - File change detected. Starting incremental compilation...
[0] 
[0] node_modules/firebase-functions/lib/function-configuration.d.ts(4,64): error TS1005: ']' expected.
[0] node_modules/firebase-functions/lib/function-configuration.d.ts(4,66): error TS1134: Variable declaration expected.
[0] node_modules/firebase-functions/lib/function-configuration.d.ts(4,366): error TS1005: ';' expected.
[0] node_modules/firebase-functions/lib/function-configuration.d.ts(16,61): error TS1005: ']' expected.
[0] node_modules/firebase-functions/lib/function-configuration.d.ts(16,63): error TS1134: Variable declaration expected.
[0] node_modules/firebase-functions/lib/function-configuration.d.ts(16,93): error TS1005: ';' expected.
[0] 
[0] 18:31:47 - Found 6 errors. Watching for file changes.

image

I get this error on npm run serve:dev, any idea why this is happening?

Utkarshbhimte avatar Aug 16 '20 13:08 Utkarshbhimte

Never seen this error. Something like this issue can be found here: try updating the TypeScript version.

robisim74 avatar Aug 18 '20 13:08 robisim74