[fix] preview-email is failing due to require('node:child_process') is not getting processed on mac intel
opened this issue · comments
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.
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:
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