-
Notifications
You must be signed in to change notification settings - Fork 42
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
Unable to load jsx-email.config #257
Comments
This is due to next.js in dev mode bundling/loading the wrong lilconfig version which does not have the necessary webpack considerations in its source. Tailwindcss is the culprit here and there's a pending PR here: tailwindlabs/tailwindcss#14029 Temporary workaround is not to use a jsx-email.config file, will keep working on a better solution. |
For anyone reading: you can pass in the same render options you would put in the config as a second parameter on the |
I think this one is good to go now that tailwind updated. next.js could still potentially be an issue in the future. |
@jsxp-email/cli
Version?:Expected Behavior
console log html & plaintext
Actual Behavior
Terminal error:
Additional Information
To test install dependencies then run
pnpm dev
, this will start nextjs, then click the only button on the top left of the screenI've tracked the issue down to the
render
function specifically, interesting behaviour:render
,renderPlainText
render
maybe it completely ignored the config here? not sure
The text was updated successfully, but these errors were encountered: