ultraq / thymeleafjs

A basic implementation of the Thymeleaf templating engine in JavaScript
Apache License 2.0
52 stars 8 forks source link

ReferenceError: Node is not defined #38

Closed mrinalraj closed 3 years ago

mrinalraj commented 3 years ago

Node not defined on trying to use the .process() function.

at serialize (.\node_modules\thymeleaf\lib\thymeleaf.node.cjs.js:710:33)

ultraq commented 3 years ago

Hey there, thanks for the bug report. I think I was able to figure out what might be going on without more info, and have uploaded a 0.20.1 version of thymeleafjs which addresses this. Could you give that version a try and let me know if it fixes things for you? (Unfortunately, I can't easily have a test that checks for this because Jest loads a DOM environment into Node globals and so Node is always present.)

ultraq commented 3 years ago

Fixed in 0.20.1