You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@artf
Created a fix for this issue in #393
Don't hesitate to tell me if you find a better way.
For this fix to work you need to pass in a custom parser (since the default one uses window)
GrapesJS version
GrapesJS MJML version
What browser are you using?
Not applicable (it's running on a server)
Reproducible demo link
https://codesandbox.io/p/sandbox/m86rgn
Describe the bug
How to reproduce the bug?
What is the expected behavior?
The html is created (and does not rely on window since we run it in headless mode).
What is the current behavior?
We have this error :
If is necessary to execute some code in order to reproduce the bug, paste it here below:
Workaround:
We found a solution by importing global-jsdom/register, that gives a mock of window.
Code of Conduct
The text was updated successfully, but these errors were encountered: