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

Support React 18 #74

Open
tbantle22 opened this issue May 9, 2022 · 3 comments
Open

Support React 18 #74

tbantle22 opened this issue May 9, 2022 · 3 comments

Comments

@tbantle22
Copy link

Once upgrading our app to react and @types/react v18, we got this error on compile:

% yarn compile
src/components/MailingList/index.tsx:29:8 - error TS2786: 'MailchimpSubscribe' cannot be used as a JSX component.
  Its instance type 'MailchimpSubscribe<EmailFormFields>' is not a valid JSX element.
    The types returned by 'render()' are incompatible between these types.
      Type 'import("<path>/web/node_modules/@types/react-mailchimp-subscribe/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
        Type '{}' is not assignable to type 'ReactNode'.

29       <MailchimpSubscribe
          ~~~~~~~~~~~~~~~~~~


Found 1 error.
@BearCooder
Copy link

yes not working for me either

@BearCooder
Copy link

any chance for an update? :) @revolunet

@revolunet
Copy link
Owner

Hi, i could merge a PR if you can fix it, thanks

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

3 participants