This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
[Bug]: Working with a rendered blade view as input does not work on Windows environment #13
Labels
bug
Something isn't working
What happened?
Currently I have a bug where the exact same code always works when running my app on MacOS and Linux machines, but I get a NodeJS JSON parse error on Windows environments.
My code is as follows:
in the content function of a Laravel mailable, I generate MJML like this:
the mail template looks like this basically:
The toHtml() function works fine and renders HTML that can be used perfectly in emails, on Mac.
But on Windows, I get the following error:
I tried a lot of things, like minifying, trimming characters, shortening the mjml code, etc etc., but nothing works.
The issue is also not with my node environment setup, because if I enter the code as input from the readme of the package then the toHtml() function does work and render the email correctly.:
The above works on my machine.
The issue seems to be with the rendered blade view content. But this sequence does work without issue on Mac.
What could be the problem here?
How to reproduce the bug
Try to convert pre-rendered mjml from a blade view to Html on a Windows environment.
Package Version
1.0.2
PHP Version
8.2.0
Which operating systems does with happen with?
Windows
Notes
No response
The text was updated successfully, but these errors were encountered: