Skip to content

Node Alpine doesn't works well with @react-email/preview-server:5.2.1>5.2.5 and react-email: 5.2.1>5.2.5 due to env -S args. #2792

@RSickenberg

Description

@RSickenberg

What versions are you using? (if relevant)

No response

Describe the Bug

While starting my dev server I had an update from dependabot to these two components and this error happened.

/usr/bin/env: unrecognized option: S.

What is affected (leave empty if unsure)

Preview Server

Link to the code that reproduces this issue

Simply this docker-compose element.

  react-email:
    image: node:24-alpine
    working_dir: /app
    volumes:
      - .:/app
    command: npm run email:dev
    ports:
      - "3001:3001"
    env_file:
      - .env
npm command is = "email:dev": "email dev -p 3001"

To Reproduce

Start the container.

Expected Behavior

To behave like 2.1.1.

What's your node version? (if relevant)

24.12.0

Metadata

Metadata

Assignees

Labels

Package: react-emailThis is the CLI we generally use as just `email` on the temrinal.Type: BugConfirmed bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions