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
Expected behavior
react-gapi should work with latest TypeScript compiler.
Actual behavior
importing react-gapi causes TypeScript compile-time error.
error TS7016: Could not find a declaration file for module 'react-gapi'. 'node_modules/.pnpm/react-gapi@1.0.2_react@18.2.0_typescript@5.0.4/node_modules/react-gapi/dist/esm/index.js' implicitly has an 'any' type.
There are types at 'node_modules/react-gapi/dist/types/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'react-gapi' library may need to update its package.json or typings.
To Reproduce
create a new Vite project with React Typescript template
https://arethetypeswrong.github.io/?p=react-gapi%401.0.2
Expected behavior
react-gapi should work with latest TypeScript compiler.
Actual behavior
importing react-gapi causes TypeScript compile-time error.
To Reproduce
tsc
Environment
node: 18.12.1
pnpm: 8.3.1
TypeScript: 5.0.4
tsconfig.json
The text was updated successfully, but these errors were encountered: