You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've installed and copied gatsby-browser.js to my project root folder, then created hooks for each of the relations I'd use it with Tina CMS: for blog post authors, categories and tags.
You can see the files below.
Notice I've used the same Math.random() formula from TinaCMS group-list example, since there's no ID attributed for categories or tags. Then, the hooks:
To be able to insert fields for these parameters into blogpost template so TinaCMS would help me handle such values
What happened
TypeError: react_is__WEBPACK_IMPORTED_MODULE_2___default.a is undefined
Not a clue what is this about. Researching on Google, I found out it could be something to do with some react callback or even a version, but mine is up to date:
"react": "^16.13.1",
"react-dom": "^16.13.1",
I've pushed the repo into a branch to work only with TinaCMS and my last commit was entirely about installing tinacms-fields. You can find it here.
Could you please help me to find out what might be the issue? I'm even thinking I've installed it wrong.
The text was updated successfully, but these errors were encountered:
@edueter hi there! thanks for the issue report. I tried to investigate but it seems you didn't push any change to your branch. The fields are not installed and the gatsby-browser.js only contains
Thanks for your effort, Marc. My mistake, I thought I have done it. It's there now, with a few changes. I've uninstalled the other plugins to keep tinacms-relation-fields only, but the error keeps appearing.
This email field is something I've done yesterday to handle e-mail input for authors in my blog.
What was done
I've installed and copied gatsby-browser.js to my project root folder, then created hooks for each of the relations I'd use it with Tina CMS: for blog post authors, categories and tags.
You can see the files below.
gatsby-browser.js
Notice I've used the same Math.random() formula from TinaCMS group-list example, since there's no ID attributed for categories or tags. Then, the hooks:
useAuthors.js
useCategories.js
useTags.js
What was expected
To be able to insert fields for these parameters into blogpost template so TinaCMS would help me handle such values
What happened
TypeError: react_is__WEBPACK_IMPORTED_MODULE_2___default.a is undefined
Not a clue what is this about. Researching on Google, I found out it could be something to do with some react callback or even a version, but mine is up to date:
I've pushed the repo into a branch to work only with TinaCMS and my last commit was entirely about installing tinacms-fields. You can find it here.
Could you please help me to find out what might be the issue? I'm even thinking I've installed it wrong.
The text was updated successfully, but these errors were encountered: