liminspace / django-mjml

The simplest way to use MJML in Django templates.
MIT License
260 stars 32 forks source link

Ignore stderr punycode deprecation warning #188

Closed alfonsrv closed 1 day ago

alfonsrv commented 2 months ago

Cannot use this anymore due to the (node:60710) [DEP0040] DeprecationWarning: Thepunycodemodule is deprecated. Please use a userland alternative instead. error. I tried working around this, but found out mjml itself depends on libraries directly linked to punycode (see https://github.com/mjmlio/mjml/issues/2843)

I have previously worked around this issue by downgrading node, but that's not really a fix; especially since basically a year later it's still the same.

Can we ignore stderr involving these lines to avoid crashing the wrapper?

(node:60953) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
liminspace commented 1 day ago

Python-side code shouldn't handle issues from node-side. This issue can be fixed by using LTS version of node or using stable version of mjml.