googleapis / googleapis/google-api-nodejs-client

Cannot find module 'googleapis' or its corresponding type declarations.

Open
#2,920 0 comments 0 reactions 0 assignees View on GitHub
priority: p2 type: bug
Dominant language
TypeScript
Stars
12.2k
Forks
2k
Avg merge
1d 9h
Merged PRs (30d)
24

Description

#### Environment details

- OS: Mac 2022
- Node.js version: 14.17.6
- npm version: 1
- `googleapis` version:^97.0.0

#### Steps to reproduce

1. npm i googleapis
2. run server

When I add the newest version to my repo and I build my environment I get error. `Cannot find module 'googleapis' or its corresponding type declarations.` I noticed in another folder we are running `googleapis "^92.0.0"` So I downgraded to that and it worked perfectly. So downgrading for now but thought you might like to know.

My IDE found the module and was working fine for things like autocomplete. But it looks like webpack was having trouble compiling it.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.