Skip to content

firebase deploy error TS1005 #5486

Closed
Closed
@nchitnis1

Description

@nchitnis1

I am following the instructions from https://firebase.google.com/docs/ml/ios/recognize-text.

I tried this on the Mac, and also on Windows 10, with exactly the same results.

git clone https://github.com/firebase/functions-samples
cd vision-annotate-images
cd functions
npm install
cd ..
firebase init
firebase deploy --only functions:annotateImage

The output has 136 errors, I am showing just the top few:


=== Deploying to 'myprogram'...

i  deploying functions
Running command: npm --prefix "$RESOURCE_DIR" run lint

> functions@ lint C:\firebase\functions-samples\vision-annotate-images\functions
> eslint "src/**/*"

Running command: npm --prefix "$RESOURCE_DIR" run build

> functions@ build C:\firebase\functions-samples\vision-annotate-images\functions
> tsc

node_modules/@firebase/util/dist/util-public.d.ts:496:91 - error TS1005: ',' expected.

496 export declare const getDefaultEmulatorHostnameAndPort: (productName: string) => [hostname: string, port: number] | undefined;
                                                                                              ~
node_modules/@firebase/util/dist/util-public.d.ts:496:105 - error TS1005: ',' expected.

496 export declare const getDefaultEmulatorHostnameAndPort: (productName: string) => [hostname: string, port: number] | undefined;
                                                                                                            ~
node_modules/@firebase/util/dist/util-public.d.ts:512:103 - error TS1005: ']' expected.

512 export declare const getExperimentalSetting: <T extends ExperimentalKey>(name: T) => FirebaseDefaults[`_${T}`];
                                                                                                          ~~~~
node_modules/@firebase/util/dist/util-public.d.ts:512:110 - error TS1005: ';' expected.

512 export declare const getExperimentalSetting: <T extends ExperimentalKey>(name: T) => FirebaseDefaults[`_${T}`];

The rest of the errors have been truncated

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions