Open eduoliveira85 opened 4 years ago
@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
import './src/css/tailwind.css';
import './src/scss/default.scss'
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_isWEBPACK_IMPORTED_MODULE2default.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.