resend / react-email

💌 Build and send emails using React
https://react.email
MIT License
12.57k stars 571 forks source link

fix: Error on demo deploy #1441

Closed gabrielmfern closed 2 weeks ago

gabrielmfern commented 2 weeks ago

This is meant to fix the issue we were having that was causing errors on our demo deploy. It was exactly the same issue as pointed out on #1432.

This can be seen to be working because the preview deploy of the demo on this PR is not failing.

The issue was that we were requiring ^18.2.0 on the react-email package, but for all other packages we were requiring 18.2.0 exactly which meant it would conflict on the peer dependencies. The solution was making all packages depend on react@^18.2.0.

From NPM's SemVer calculator, this new version resolves to the following currently:

Meaning that if the user chooses to use any of these versions it won't complain about the peer dependency version.

This PR simply updates the versions of react-email and @react-email/components to their latest in which these peer dependency versions are fixed.

vercel[bot] commented 2 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-email ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 29, 2024 7:28pm
1 Ignored Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **react-email-demo** | ⬜️ Ignored ([Inspect](https://vercel.com/resend/react-email-demo/FVjoksju6MkTe8mKN9Uqw3cdR76E)) | [Visit Preview](https://react-email-demo-git-fix-error-on-demo-deploy-resend.vercel.app) | | Apr 29, 2024 7:28pm |