We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
The text was updated successfully, but these errors were encountered:
@nchitnis1 Thanks for the feedback. It turns out the issue is with old typescript version included in the sample.
To workaround the issue, try installing the latest version of typescript:
npm i --save-dev typescript@latest
I also sent PR to the samples repo to fix the issue upstream.
Sorry, something went wrong.
I reinstalled everything and added the changes made above, and it works now. Thanks.
No branches or pull requests
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.
The output has 136 errors, I am showing just the top few:
The rest of the errors have been truncated
The text was updated successfully, but these errors were encountered: