You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using cacheable-request@10.2.0 in my TypeScript project, I get the following error when trying to compile it:
maxim@ubuntu:~/google-api-typings-generator$ tsc
node_modules/cacheable-request/dist/types.d.ts:7:35 - error TS7016: Could not find a declaration file for module 'http-cache-semantics'. '/home/maxim/google-api-typings-generator/node_modules/http-cache-semantics/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/http-cache-semantics` if it exists or add a new declaration (.d.ts) file containing `declare module 'http-cache-semantics';`
7 import { CachePolicyObject } from 'http-cache-semantics';
~~~~~~~~~~~~~~~~~~~~~~
Found 1 error in node_modules/cacheable-request/dist/types.d.ts:7
@Maxim-Mazurok - thanks for sending this over. I was looking at the node_modules/cacheable-request/dist/package.json and we do have @types/http-cache-semantics in there but seems to not be loading in the node_modules.
When I run npm i --save-dev @types/http-cache-semantics on the main project this goes away but there seems to be an issue.
Describe the bug
When using
cacheable-request@10.2.0
in my TypeScript project, I get the following error when trying to compile it:How To Reproduce (best to provide workable code or tests!)
The problem is currently present in this PR: Maxim-Mazurok/google-api-typings-generator#709
git clone -b create-pr-action/chore-npm-dedupe-0 https://github.com/Maxim-Mazurok/google-api-typings-generator
cd google-api-typings-generator
nvm i
npm ci
The text was updated successfully, but these errors were encountered: