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:
- @tinacms/cli 1.5.6
- @tinacms/cli 1.5.7
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
- Follow our Code of Conduct
- Read the docs.
- Check that there isn’t already an issue that reports the same bug.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 28 (13 by maintainers)
Commits related to this issue
- fix: issue where collection is read only with a single document not working with folders https://github.com/tinacms/tinacms/issues/3870#issuecomment-1529717941 — committed to tinacms/tinacms by kldavis4 a year ago
- fix: issue where collection is read only with a single document not working with folders https://github.com/tinacms/tinacms/issues/3870#issuecomment-1529717941 (#3891) — committed to tinacms/tinacms by kldavis4 a year ago
@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 siteUPDATE: My bad I forgot to run
yarn install. I see the issue and hopefully can fix it.