Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find a declaration file for module '@vis.gl/react-google-maps'. v0.2.0 #61

Closed
MauricioRobayo opened this issue Nov 7, 2023 · 3 comments · Fixed by #62
Closed

Comments

@MauricioRobayo
Copy link
Contributor

MauricioRobayo commented Nov 7, 2023

Hello!

I'm testing the package and installed the latest version at the moment (v0.2.0).

After installing the package and creating a component based on this example, I get the following typescript error:

Could not find a declaration file for module '@vis.gl/react-google-maps'. 

Downgrading to v0.1.2 seems to fix the issue.

Here is a test repo: https://github.com/MauricioRobayo/google-maps-test/blob/main/src/app/GoogleMap.tsx

Steps to reproduce:

  1. Clone the repo: https://github.com/MauricioRobayo/google-maps-test
  2. Install dependencies: npm install
  3. Build the app: npm run build

The build fails because of the error:

image
@usefulthink
Copy link
Collaborator

I think I've seen that one before, let me see if it's an easy fix.

@usefulthink usefulthink linked a pull request Nov 7, 2023 that will close this issue
@usefulthink
Copy link
Collaborator

I just published version 0.2.1, which should have a fix for this. Can you verify?

@MauricioRobayo
Copy link
Contributor Author

Verified, it is fixed. Thanks @usefulthink

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants