I believe the problem is what react-google-mapsis the JavaScript module. To import a TypeScript module, you need some characters that translate JavaScript into TypeScript, for example. from the DefinitelyTyped repository.
A quick search did not find such typifications, why I assume that you have not set any types for this.
There are two solutions, if so.
- Write sample data and pass it on to a specific type or type registry. This is my recommended approach. Do something back to the community by writing typing and publishing it to others.
- Declare a module in your project to disable import. This one does not give you any IntelliSence, therefore it only blocks import.
, react-google-maps.d.ts :
declare module "react-google-maps" {
export var GoogleMap;
export var Marker;
}