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

[fix] preview-email is failing due to require('node:child_process') is not getting processed on mac intel #35

Closed
3 tasks
ghost opened this issue Feb 10, 2023 · 2 comments
Labels

Comments

@ghost
Copy link

ghost commented Feb 10, 2023

Describe the bug

Node.js version: 14.17.3

OS version: mac os 10.15.3

Description: require('node:child_process') throwing error

Actual behavior

Cannot find module 'node:child_process'

Expected behavior

preview-email should load properly

Code to reproduce

Checklist

  • I have searched through GitHub issues for similar issues.
  • I have completely read through the README and documentation.
  • I have tested my code with the latest version of Node.js and this package and confirmed it is still not working.
@ghost ghost added the bug label Feb 10, 2023
@titanism
Copy link
Contributor

titanism commented Feb 10, 2023

It looks like this wasn't backported to v14, but v14.18.0+.

If you upgrade to v14.18.0 it should fix it - however we're fixing this and publishing a new version without node: for now across email-templates and preview-email. One moment...

Ref:

@titanism
Copy link
Contributor

v3.0.10 released to npm with the fix; please try that @vanshika2702 and thanks for reporting 🙏

https://github.com/forwardemail/preview-email/releases/tag/v3.0.10

Also we've released email-templates v11.0.3 to npm with the same fix:

https://github.com/forwardemail/email-templates/releases/tag/v11.0.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant