Skip to content

Could not find a declaration file for module '@google-cloud/vision' #3

@honghu215

Description

@honghu215

Hi,

Thanks for sharing.

there's an error with the following command

import * as admin from '@google-cloud/vision';

Could not find a declaration file for module '@google-cloud/vision'. '/Users/honghu/Projects/ionic/demos/GoogleFunctions/functions/node_modules/@google-cloud/vision/src/index.js' implicitly has an 'any' type.
Try npm install @types/google-cloud__vision if it exists or add a new declaration (.d.ts) file containing declare module '@google-cloud/vision';

I have dependency @google-cloud/vison: "^0.24.0" in package.json

How should I solve this issue, thanks?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions