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
TwigException: Twig.expression.type.array.start cannot follow a Twig.expression.type.variable at template:4 near '[...'
ERROR Failed to compile with 1 errors Syntax Error: Unexpected token u in JSON at position 0
at JSON.parse ()
My solution is to set a temporary variable and use it, but I'm wondering if there's a better way, or if this can be fixed.
Indeed, I'm having a hard time reproducing it, or even finding where I used it in my code. Thanks, if I find it I'll reopen.
Please reopen this issue, since I've only provided the examples.
I've submitted a PR that could fix this issue, although I'm not sure if it will break anything else.
I'm passing in a hydra json response, which includes an element with a key of 'hydra:member'.
My twig template is
This throws an error
TwigException: Twig.expression.type.array.start cannot follow a Twig.expression.type.variable at template:4 near '[...'
ERROR Failed to compile with 1 errors Syntax Error: Unexpected token u in JSON at position 0
at JSON.parse ()
My solution is to set a temporary variable and use it, but I'm wondering if there's a better way, or if this can be fixed.
Thanks. I think this library rocks.
The text was updated successfully, but these errors were encountered: