Local CMS error - YAMLSyntaxError: All collection items must start at the same column at line 1, column 1:

Hello,

When trying to access my CMS locally via localhost:3000/admin I’m getting the following error:

# Error loading the CMS configuration

**Config Errors:**

YAMLSyntaxError: All collection items must start at the same column at line 1, column 1: <!doctype html> ^^^^^^^^^^^^^^^…

Check your config.yml file.

However, I can access the the CMS perfectly fine in production. Any ideas? Here is my config.yml file:

backend:
  name: git-gateway
  branch: master

local_backend: true

display_url: https://vigorous-mahavira-319660.netlify.app/
logo_url: https://vigorous-mahavira-319660.netlify.app/img/baked-logo.svg

media_folder: "site/static/img"
public_folder: "img"

collections:
  - name: "work"
    label: "Work"
    folder: "site/content/work"
    create: true
    fields:
      - {label: "Title", name: "title", widget: "string"}
      - {label: "Publish Date", name: "date", widget: "datetime"}
      - {label: "Tags", name: "tags", widget: "list"}
      - {label: "Thumbnail Image", name: "image", widget: "image"}
      - {label: "Thumbnail Video", name: "thumbnailVideo", widget: "file"}
      - {label: "Intro Blurb", name: "description", widget: "text"}
      - label: "Body section"
        name: "sections"
        widget: "list"
        collapsed: false
        fields:
          - {label: "Sub title", name: "subtitle", widget: "string"}
          - {label: "Copy", name: "copy", widget: "text"}
      - label: "Gallery"
        name: "carousel"
        widget: "list"
        fields:
          - {label: "Image", name: "image", widget: "image"}
          - {label: "Video", name: "video", widget: "file"}
          - {label: "Alt text", name: "alt", widget: "string"}
  - name: "jobs"
    label: "Jobs"
    folder: "site/content/jobs"
    create: true
    fields:
      - {label: "Title", name: "title", widget: "string"}
      - {label: "Publish Date", name: "date", widget: "datetime"}
      - {label: "Category", name: "category", widget: "string"}
      - {label: "Job Type", name: "jobType", widget: "string"}
      - {label: "Location", name: "location", widget: "string"}
      - {label: "Salary", name: "salary", widget: "string"}
      - {label: "Note", name: "note", widget: "string"}
      - {label: "Body", name: "body", widget: "markdown"}
  - name: "pages"
    label: "Main Pages"
    files:
      - file: "site/content/_index.md"
        label: "Home Page"
        name: "home"
        fields:
          - {label: "Title", name: "title", widget: "string"}
      - file: "site/content/about/_index.md"
        label: "About Page"
        name: "about"
        fields:
          - {label: "Title", name: "title", widget: "string"}
          - {label: "Intro Blurb", name: "description", widget: "text"}
          - {label: "Section title", name: "sectionTitle", widget: "string"}
          - {label: "Section description", name: "sectionDescription", widget: "text"}
          - label: "Image Row 1"
            name: "imageRow1"
            widget: "list"
            allow_add: false
            fields:
              - {label: "Image", name: "image", widget: "image"}
              - {label: "Alt text", name: "alt", widget: "string"}
          - label: "Values"
            name: "values"
            widget: "list"
            fields:
              - {label: "Value title", name: "title", widget: "string"}
              - {label: "Value description", name: "description", widget: "text"}
          - label: "Image Row 2"
            name: "imageRow2"
            widget: "list"
            allow_add: false
            fields:
              - {label: "Image", name: "image", widget: "image"}
              - {label: "Alt text", name: "alt", widget: "string"}
          - label: "Image Row 3"
            name: "imageRow3"
            widget: "list"
            allow_add: false
            fields:
              - {label: "Image", name: "image", widget: "image"}
              - {label: "Alt text", name: "alt", widget: "string"}
      - file: "site/content/contact/_index.md"
        label: "Contact Page"
        name: "contact"
        fields:
          - {label: "Title", name: "title", widget: "string"}
          - {label: "Email", name: "email", widget: "string"}
          - {label: "WhatsApp", name: "whatsapp", widget: "string"}
          - {label: "Body", name: "body", widget: "markdown"}
  - name: "settings"
    label: "Settings"
    files:
      - file: "site/data/settings/navigation.yml"
        label: "Navigation"
        name: "navigation"
        preview: false
        fields:
          - label: "Navigation"
            name: "nav"
            widget: "list"
            fields:
              - {label: "Name", name: "label", widget: "string"}
              - {label: "Path", name: "URL", widget: "string"}
          - label: "Description"
            name: "description"
            widget: "text"
          - label: "Brands"
            name: "brands"
            widget: "list"
            fields:
              - {label: "Brand", name: "label", widget: "string"}
          - label: "Services"
            name: "services"
            widget: "list"
            fields:
              - {label: "Service", name: "label", widget: "string"}
          - label: "Contact"
            name: "contact"
            widget: "string"
      - file: "site/data/settings/footer.yml"
        label: "Footer"
        name: "footer"
        preview: false
        fields:
          - label: "Navigation"
            name: "nav"
            widget: "list"
            fields:
              - {label: "Name", name: "label", widget: "string"}
              - {label: "Path", name: "URL", widget: "string"}
          - label: "Description"
            name: "footerText"
            widget: "text"
          - {label: "Instagram", name: "instagram", widget: "string"}
          - {label: "LinkedIn", name: "linkedin", widget: "string"}
          - {label: "Vimeo", name: "vimeo", widget: "string"}
          - {label: "Spotify", name: "spotify", widget: "string"}
          - {label: "Youtube", name: "youtube", widget: "string"}
          - {label: "Dribbble", name: "dribbble", widget: "string"}
          - {label: "Twitter", name: "twitter", widget: "string"}
  - name: "basic-pages"
    label: "Basic Pages"
    folder: "site/content"
    create: true
    fields:
      - {label: "Title", name: "title", widget: "string"}
      - {label: "Body", name: "body", widget: "markdown"}

Hi there, @shunanahara

Thanks for your interest in Netlify CMS. Looks like you posted your question a little while ago, but that you haven’t received a solution yet. Here’s where you might get more help:

netlifycms.org - the site houses our extensive documentation that likely contains helpful information to get you back on track.

netlify cms slack - join our friendly slack channel and chat with other cms pros to get the help you need.

GitHub Issues - think you’ve found a bug, or would like to make a feature request? Make your voice heard here. Netlify CMS is open source - PRs and other contributions are also welcome!

Stack Overflow Check StackOverflow for questions tagged “Netlify CMS” if you don’t get an answer in the Slack or the GH issues. StackOverflow reaches a worldwide audience of knowledgeable people.

Your question will be left open here for anyone to comment - @tomrutgers may have some thoughts as well. We encourage you to check out the above resources if you are still looking for a solution!

The line 1, column 1: <!doctype html> ^^^^^^^^^^^^^^^ kinda makes me believe a layout is being applied to your yaml file. There’s nothing wrong with your config, at least.