Faire / mjml-react

React component library to generate the HTML emails on the fly
https://www.npmjs.com/package/@faire/mjml-react
MIT License
375 stars 16 forks source link

TS2786: Mjml cannot be used as a JSX component. #111

Closed kirill-konshin closed 5 months ago

kirill-konshin commented 5 months ago

"mjml-react": "^2.0.8", "@types/mjml-react": "^2.0.10",

image

image

emmclaughlin commented 5 months ago

Hi @kirill-konshin 👋

mjml-react and @types/mjml-react are not a part of this project. They are from https://github.com/wix-incubator/mjml-react, which is no longer maintained. We forked that project and took over maintaining it under @faire/mjml-react.

I would recommend upgrading to the latest version of @faire/mjml-react and seeing if the error still persists. Our components are written in typescript (example: Mjml) so there should be no need for the @types/mjml-react package.

kirill-konshin commented 5 months ago

It helped, thanks! I'd suggest to fix mailing documentation to point to new lib.