File section error "this.options is undefined"

I’m making a panel with file upload to the site.yml

so my setup looks like this: in the site.yml

    settingsTab:
    extends: columns/only-files
    label: General
    icon: settings
    columns:
      main:
        sections:
          meta: sections/templates/site/meta
          contact: sections/templates/site/contact

Then I have the file it extends - columns/only-files.yml

    columns:
      main:
        width: 2/3
      sideBar:
        width: 1/3
        sections:
          files:
            headline: files
            type: files

Now when I open this tab I get the following error:

this.options is undefined

As you can see my main bar section is loaded, but the files section is empty

The weird thing is this worked for me ok last week, since I added some plugins, but I don’t understand how they’d affect this, also I removed them from the plugins directory to see if it’d change anything and it didn’t

Please help!

Your indentation looks wrong:

  sideBar:
    width: 1/3
    sections:
      files:
        headline: files
        type: files

sadly its only wrong here when copy and pasting :confused: - fixed it on the post

Hm, I wonder if the problem is that you are in fact using the same column names within the same tab? At least something seems weird or a key for the other tab missing?

On a side note: To make everyone’s life here easier, please wrap code blocks within three backticks on a new line before and after a code block. Thanks.

yea, I guess it was that.

I have another tab there:

scriptsTab:
  extends: columns/only-files
  label: Scripts and Styles
    columns:
      main:
        sections:
          scripts: sections/templates/site/scripts
      sideBar:
        sections:
          files: sections/templates/site/custom-scripts

And I was trying to iverwrite the files into a different section, and that was causing it. so I understand from that that the section name is meaningful in some way?

anyway, I resolved it by creating a different columns section for that one.