google-api-nodejs-client icon indicating copy to clipboard operation
google-api-nodejs-client copied to clipboard

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

Open EvaFro opened this issue 3 years ago • 0 comments

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.

EvaFro avatar Mar 21 '22 20:03 EvaFro