-
Notifications
You must be signed in to change notification settings - Fork 44
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
Quick start with a new project fails #283
Comments
We have a set of smoke tests which uses This is one of those that without a reproduction, we're not going to be able to help, because what you're seeing is drastically different from what we're seeing. |
Thank you for your elaborate answer. I’m sorry I just created this issue without providing a reproducible test case at first. Now I finally managed to consistently reproduce the error by running it inside Docker: # `yes ""` sends Enter key presses to `npm create jsx-email` to automatically select the defaults.
docker run --rm node:22-slim sh -c 'cd /tmp && yes "" | npm create jsx-email && cd /tmp/email-project && npm install && npm run build' The final Interestingly, docker run --rm node:22-slim sh -c 'mkdir /app && cd /app && yes "" | npm create jsx-email && cd /app/email-project && npm install && npm run build' This should be consistently reproducible on any machine with Docker installed. Would you like me to create a GitHub Action or something similar to be able to provide a reproduction link? Apparently the path to the module is not constructed correctly when running it inside the I also got the same error when running P.S.: Thank you for this project. Being able to create emails with React is great! |
OK thanks for doing that deep dive. jsx-email uses the system temp directory to do a lot of file writes and reads. That's not likely to change because that's the standard for that kind of thing. This is likely a problem with how we're resolving the temp paths once they've been constructed. For now the guidance should be not to run this in a system temp directory, but we can take a look at that directory building at some point. (As always if you find the culprit sooner, please let us know and we'll get a fix in for you, or merge a PR for you) As for the windows smoke tests - that isn't something that's actually in the repo. If you go to main branch and the .github directory, you won't find that there. Those runs are from a user attempting to contribute a Windows version of the Smoke Test workflow. If you could help triage what the issues are on Windows in that |
I'll be seeing if there's anything we can do around this, this week. |
@jsxp-email/cli
Version?: noneAn error occurs when I try to follow these instructions: https://jsx.email/docs/quick-start#new-projects
Steps to reproduce
npm create jsx-email
cd email-project && npm install
npm run dev
Expected Behavior
No errors when running
npm run dev
.Actual Behavior
The code appears to import a non-existing file. The /build directory is not created.
Additional Information
The StackBlitz reproduction template doesn’t seem work either. Running it fails with the following error:
Therefore I’m unable to provide a link to reproduce the error.
The text was updated successfully, but these errors were encountered: