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

Allow developer to specify a path for typescript executable #12

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rochmadnf
Copy link

@rochmadnf rochmadnf commented May 28, 2024

I have an issue when using pnpm as package manager. I always got error like below

Error Output:
================
node_modules/.bin/tsx:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
          ^^^^^^^

or

Error: Cannot find module 'Users/rochmadnf/Training/laravel/laravel-react-email/node_modules/.bin/tsx'

to solve that, i add new config value to set the tsx path.

REACT_EMAIL_TSX_PATH='/your_basepath_node_modulus_tsx'

# example
# REACT_EMAIL_TSX_PATH='/node_modulus/tsx/dist/cli.mjs'

And to make pnpm work i do this
pnpm add tsx @react-email/render react

rochmadnf added 2 commits May 28, 2024 11:40

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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.

None yet

1 participant