tinacms: Collection templates stopped working after updating from 1.4.6 to 1.5.0

Describe the issue that you’re seeing. Any Loom videos or screenshots usually help a lot!

For one collection, I’ve defined templates as described in the docs.

Tina CMS builds the dev server without error, but when I use the admin to navigate to the collection, it won’t load, saying “Looks like there’s nothing to edit on this page.” I can’t create new pages there either.

When I look at the browser I see the following errors: Uncaught TypeError: fields is undefined […] The above error occurred in the <GetCollection> component: […]

Reproduction

https://github.com/kslstn/tina-issues/tree/templates

Steps to reproduce

Update:

dependencies:

  • tinacms 1.4.6
  • tinacms 1.5.0

devDependencies:

Then define a template as described in the docs.

System Info

System:
    OS: macOS 13.3.1
    CPU: (4) x64 Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz
    Memory: 322.47 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 16.14.2 - /usr/local/bin/node
    npm: 8.5.0 - /usr/local/bin/npm
  Browsers:
    Chrome: 112.0.5615.137
    Edge: 112.0.1722.58
    Firefox: 112.0.1
    Safari: 16.4
    Safari Technology Preview: 16.4
  npmPackages:
    @tinacms/cli: ^1.5.7 => 1.5.7 
    tinacms: ^1.5.0 => 1.5.0

Validations

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 28 (13 by maintainers)

Commits related to this issue

Most upvoted comments

@pbougie Can you describe the issue you are seeing and how to reproduce it? I don’t see any issues in the admin interface on your reproduction site

UPDATE: My bad I forgot to run yarn install. I see the issue and hopefully can fix it.