Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unexpected token: } in nested set value #1466

Open
blachawk opened this issue May 3, 2024 · 1 comment
Open

unexpected token: } in nested set value #1466

blachawk opened this issue May 3, 2024 · 1 comment

Comments

@blachawk
Copy link

blachawk commented May 3, 2024

Receiving that error message for the following logic in my Nunjucks project....

  {% set items = [
    {
      name: 'specials',
      heading:'Special Addition : Ukrainian Folk Music',
      subTitle: 'Special Tracks',
      subTitleClass: 'special-title',
      subLabel: 'Click below to preview tracks',
      subLabelClass: 'txt-preview',
      track01: {
        trackTitle: '',
        trackTitleClass: '',
        trackLocation: '',
      },
    }
  ] %}

What could possibly be wrong with this?

@adamaveray
Copy link

@blachawk Trailing commas are not supported – see #1001

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants