Skip to content
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

yarn build is broken in [email protected] #1631

Open
semtselishev opened this issue Aug 27, 2024 · 6 comments
Open

yarn build is broken in [email protected] #1631

semtselishev opened this issue Aug 27, 2024 · 6 comments
Labels
Package: react-email This is the CLI we generally use as just `email` on the temrinal. Type: Bug Confirmed bug

Comments

@semtselishev
Copy link

Describe the Bug

When I follow the official doc setup

  1. yarn create email
  2. yarn install
  3. yarn build

I'm getting an error like this

$ email build
   ⠦ Installing dependencies on `.react-email`Error: Unable to install the dependencies and it exited with code: 1
    at ChildProcess.<anonymous> (<path>/react-email-starter/node_modules/react-email/dist/cli/index.js:2556:44)
    at ChildProcess.emit (node:events:518:28)
    at maybeClose (node:internal/child_process:1105:16)
    at ChildProcess._handle.onexit (node:internal/child_process:305:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
{
  "name": "react-email-starter",
  "version": "0.0.32",
  "private": true,
  "scripts": {
    "build": "email build",
    "dev": "email dev",
    "export": "email export"
  },
  "dependencies": {
    "@react-email/components": "0.0.23",
    "react-email": "3.0.1",
    "react-dom": "18.3.1",
    "react": "18.3.1"
  },
  "devDependencies": {
    "@types/react": "18.3.4",
    "@types/react-dom": "18.3.0"
  }
}

Which package is affected (leave empty if unsure)

No response

Link to the code that reproduces this issue

the default code from the official documentation

To Reproduce

  1. yarn create email
  2. yarn install
  3. yarn build

Expected Behavior

the build should be working

What's your node version? (if relevant)

v20.12.2

@semtselishev semtselishev added the Type: Bug Confirmed bug label Aug 27, 2024
@gabrielmfern
Copy link
Collaborator

This worked on my side, not sure what is going on here but I can't reproduce.

@gabrielmfern gabrielmfern added the Package: react-email This is the CLI we generally use as just `email` on the temrinal. label Aug 27, 2024
@semtselishev
Copy link
Author

Hi @gabrielmfern ,
is there some way to get debug logs from this command to see the dependencies that failed to resolve?

@gabrielmfern
Copy link
Collaborator

@semtselishev you can try going into .react-email and then running yarn install, but by default it runs npm install so I would find it weird to have ran yarn install without any configuration.

@taylor-lindores-reeves

This comment was marked as off-topic.

@taylor-lindores-reeves

This comment was marked as off-topic.

@gabrielmfern

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: react-email This is the CLI we generally use as just `email` on the temrinal. Type: Bug Confirmed bug
Projects
None yet
Development

No branches or pull requests

3 participants