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

'Vimeo' cannot be used as a JSX component. #188

Closed
iammatthias opened this issue Apr 9, 2022 · 4 comments
Closed

'Vimeo' cannot be used as a JSX component. #188

iammatthias opened this issue Apr 9, 2022 · 4 comments

Comments

@iammatthias
Copy link

'Vimeo' cannot be used as a JSX component.
  Its instance type 'Vimeo' is not a valid JSX element.
    The types returned by 'render()' are incompatible between these types.
      Type 'import("./node_modules/@u-wave/react-vimeo/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
        Type '{}' is not assignable to type 'ReactNode'.ts(2786)

This error has been occurring since the recent update to v0.9.6

@marcello-palmitessa
Copy link

same issue here with react 18 and react 17.0.2

@jdockwarder
Copy link
Contributor

The latest release is missing React 18 in peerDependencies. This is apparently causing trouble. For the moment I ignore it with @ts-ignore in my Next.js App.

"peerDependencies": {
    "react": "^0.14.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
}

@jdockwarder
Copy link
Contributor

I opened a pull request for this #189

@goto-bus-stop
Copy link
Member

I think this could also be because of mismatching @types/react versions. 0.9.7 accepts typings from react 17 and react 18 so hopefully your package manager will install the right one for you now.

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

No branches or pull requests

4 participants