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

Getting an not found error #4

Open
cavewebs opened this issue Sep 28, 2023 · 4 comments
Open

Getting an not found error #4

cavewebs opened this issue Sep 28, 2023 · 4 comments

Comments

@cavewebs
Copy link

Hello, I have setup the package and followed the instructions, I had also ran vendor:publish and updated the base_path to the right directory holding the template but I get the error when I try to send the email.

    "message": "The command \"'/Users/tim/.nvm/versions/node/v19.1.0/bin/node' '/Users/tim/Herd/laravel/node_modules/.bin/tsx' '/Users/tim/Herd/laravel/vendor/maantje/react-email/src/../render.tsx' '/Users/tim/Herd/laravel/emailssignedup' '{\"referrals\":{\"name\":\"tim\",\"email\":\"timphoe@yahoo.com\",\"business_name\":null,\"business_phone\":null,\"business_location\":null,\"business_type\":null,\"updated_at\":\"2023-09-27T20:55:03.000000Z\",\"created_at\":\"2023-09-27T20:55:03.000000Z\",\"id\":1,\"referral_code\":\"31eb35341\"},\"connection\":null,\"queue\":null,\"chainConnection\":null,\"chainQueue\":null,\"chainCatchCallbacks\":null,\"delay\":null,\"afterCommit\":null,\"middleware\":[],\"chained\":[]}'\" failed.\n\nExit Code: 1(General error)\n\nWorking directory: /Users/tim/Herd/laravel\n\nOutput:\n================\n\n\nError Output:\n================\nnode:internal/modules/cjs/loader:1029\n  throw err;\n  ^\n\nError: Cannot find module '/Users/tim/Herd/laravel/node_modules/.bin/tsx'\n    at Module._resolveFilename (node:internal/modules/cjs/loader:1026:15)\n    at Module._load (node:internal/modules/cjs/loader:872:27)\n    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:82:12)\n    at node:internal/main/run_main_module:23:47 {\n  code: 'MODULE_NOT_FOUND',\n  requireStack: []\n}\n\nNode.js v19.1.0\n",
    "exception": "Symfony\\Component\\Process\\Exception\\ProcessFailedException",
    "file": "/Users/tim/Herd/laravel/vendor/maantje/react-email/src/Renderer.php",
    "line": 40,

I am able to run npm run email dev and see the emails but I am not able to send an email.

@maantje
Copy link
Owner

maantje commented Oct 22, 2023

Hey @cavewebs 👋,

It's saying something's missing (tsx), but that should've come with @j4mie/react-email.

Did you also run the npm install for @j4mie/react-email, in addition to the composer require?

@rockblings
Copy link

I am currently having similar issue. i have ran yarn add @j4mie/react-email, still not been able to send the email

@maantje
Copy link
Owner

maantje commented Feb 29, 2024

Hey @rockblings,

Are you able to post the exact error you're getting?

@rockblings
Copy link

Hey @rockblings,

Are you able to post the exact error you're getting?

Sorry for the late response. unfortunately i cant. i downgraded my node and yarn version. after that it was fixed

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

No branches or pull requests

3 participants