Skip to content

[Bug] v1.7.0 breaks other library's type system #861

@xsjcTony

Description

@xsjcTony

Description

E.g. a widely used libeary @headlessui/react's type is broken after upgrading this lib to v1.7.0. As a form UI library, it could be used a lot with this lib.

v1.7.0 introduced a lot types into the React.JSX namespace, and it may conflict with others who's using it.

First, thanks for the library, and I'm not saying it's anyone's fault, just trying to figure out what's the conflicting part there and see whether there's a way to workaround. Ideally those libs thould be able to work together without any problem.

I also posted an issue in @headlessui/react's repository: tailwindlabs/headlessui#3816

Steps to Reproduce

Example of it's broken: https://stackblitz.com/edit/vitejs-vite-wsz68euq?file=src%2FApp.tsx

Example of it's NOT broken without importing this lib: https://stackblitz.com/edit/vitejs-vite-udhvbqcd?file=src%2FApp.tsx

Environment

  • Library version: @vis.gl/react-google-maps@1.7.0
  • Google maps version: weekly
  • Browser and Version: Chrome 141.0
  • OS: Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions