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
Describe the bug
This is in relation to the change in #973, which now has my computed data throwing an error. This might by okay – maybe what I’m trying to achieve isn’t possible – but thought it was worth flagging all the same.
I have the following computed data in a directory data file, that I use to find article posts related to a given project (which I do using a category frontmatter key; if an article has a category value that is the same as a projects title, it’s deemed to be related):
Problem writing Eleventy templates: (more in DEBUG output)
> Cannot read property 'filter' of undefined
Is 11ty no longer aware of the global data object at this point in the cascade? I was getting this error intermittently before, so I guess having it be persistent is an improvement, of sorts 😉
Can you retest with the new version on GitHub? I think I boggled how computed data treats arrays last weekend, hoping it’s patched now. If not I’ll dive in deeper here before 0.11 ships
Describe the bug
This is in relation to the change in #973, which now has my computed data throwing an error. This might by okay – maybe what I’m trying to achieve isn’t possible – but thought it was worth flagging all the same.
I have the following computed data in a directory data file, that I use to find article posts related to a given project (which I do using a
category
frontmatter key; if an article has acategory
value that is the same as a projectstitle
, it’s deemed to be related):However, I now get the following error:
Is 11ty no longer aware of the global
data
object at this point in the cascade? I was getting this error intermittently before, so I guess having it be persistent is an improvement, of sorts 😉Additional context
The text was updated successfully, but these errors were encountered: