Skip to content

Conversation

TyMick
Copy link
Contributor

@TyMick TyMick commented Sep 26, 2025

I noticed during #2475 that the tailwind package wouldn't build for me on Windows, complaining 'NODE_ENV' is not recognized as an internal or external command, operable program or batch file. cross-env sets the environment variable correctly and fixes the build.


Summary by cubic

Fix Windows builds for the tailwind package by setting NODE_ENV via cross-env in the build script. The build now works in PowerShell and is cross‑platform.

Copy link

changeset-bot bot commented Sep 26, 2025

⚠️ No Changeset found

Latest commit: 75f1133

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Sep 26, 2025

@TyMick is attempting to deploy a commit to the resend Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Currently, when running this build script on Windows, PowerShell
complains

```
'NODE_ENV' is not recognized as an internal or external command,
operable program or batch file.
```

cross-env sets the environment variable correctly and fixes the build.
@TyMick TyMick force-pushed the tailwind-windows-build branch from 3c75eea to 75f1133 Compare September 26, 2025 05:52
Copy link

pkg-pr-new bot commented Sep 26, 2025

Open in StackBlitz

npm i https://pkg.pr.new/resend/react-email/@react-email/tailwind@2476

commit: 75f1133

@gabrielmfern gabrielmfern changed the title chore(tailwind): Fix Windows build fix(tailwind): errors when building in Windows Sep 26, 2025
Copy link
Member

@gabrielmfern gabrielmfern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thank you for this!

@gabrielmfern gabrielmfern merged commit ae19d38 into resend:canary Sep 26, 2025
5 of 9 checks passed
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

Successfully merging this pull request may close these issues.

2 participants