iby / twig-js-markdown

Markdown extension for twig.js
8 stars 1 forks source link

gulp error "Cannot read properties of undefined (reading 'Error')" #3

Closed olets closed 2 years ago

olets commented 2 years ago

Adding a {% markdown %}...{% endmarkdown %} gives me this error:

Message:
    Cannot read properties of undefined (reading 'Error')
Details:
    domainEmitter: [object Object]
    domainThrown: false

with either

.pipe(twig({
  extend: function(Twig) {
    twigMarkdown(Twig)
  }}))

or

.pipe(twig({ extend: twigMarkdown }))
iby commented 2 years ago

Yep, seems like some breaking changes in twig.js in 1.14… Will try to look into this further today.

iby commented 2 years ago

@olets updated all aged deps, 1.0.1 should work fine with latest twig.js and markdown. Give it a go! ✌️

olets commented 2 years ago

Thanks!