刚刚在我的项目中添加了google-maps-react和@types/googlemaps。现在,当我试图捆绑项目时,我得到了下面的错误。
../../node_modules/google-maps-react/index.d.ts:29:14 - error TS2315: Type 'Object' is not generic.
29 type Style = Object<string, string | number | boolean>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~到底是什么导致了这种情况?
发布于 2021-02-12 00:18:26
您需要为google-maps-react添加类型
npm install @types/google-maps-react
https://stackoverflow.com/questions/65659251
复制相似问题