Error: ENOENT: no such file or directory, open @googlemaps\src\index.ts

Author: Diana-M-Gonzalez-PCreated May 10, 2024Updated Mar 18, 2025

I have a React project with typescript, using the package with version "google-map-react": "2.2.1" and "@types/google-map-react": "~2.1.10" and the following warning appears and error

image

The version of react is 18.2.0

How could I solve this error? thank you

Source: google-map-react/google-map-react