-
Notifications
You must be signed in to change notification settings - Fork 900
fix(demo): builds failing after tailwind bump #2881
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
base: canary
Are you sure you want to change the base?
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
commit: |
94b0aa8 to
a5dfe9c
Compare
This reverts commit acb0b07.
An example of this is the most recent version bump #2878 which is failing the demo deploy exactly because of this. The issue is that, right now, we reinstall dependencies for the preview server to work properly, which, since we are bumping the version of
@react-email/tailwindit's going to try installing a version that is not yet published.To fix this, this pull request adds the
apps/demo/.react-emailto the workspace so that it can have access to the workspace dependencies. This also has the upside of making things faster, at the cost of making things more interconnected and complicated. Ideally we wouldn't install at all, and just reuse the installed dependencies, but with everything I've tried in #2239, I wasn't able to get it reliably working yet.Hopefully we won't have this for very long and soon get rid of this hack. Also I think it's important to note users should never ever have to do anything like this, it's just something that's "useful" to us since we are building everything from our own repo, not installing from npm
For testing this locally, I just bumped the version for @react-email/tailwind one patch above, and tried building. Before this pull request it would fail, and now I can confirm it doesn't.