Unable to add new Fieldtype #6899
Unanswered
sander-vth
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am following: https://statamic.dev/extending/fieldtypes
I have done everything the tutorial mentions.
As a result I can see my new fieldtype in the blueprints screen, I can add an icon and parameters.
But when I want to use it, only the title appears in my entries page.
I would expect there to be a text input and a checkbox (from the tutorial), but there's nothing I can do with the fieldtype....
This is my component.vue (directly from example):
This is my js file:
And I've ran [npm run dev]
This all results in a JS error in the console and no input field (nor checkbox):
TypeError: Cannot read properties of undefined (reading 'inputType')
Beta Was this translation helpful? Give feedback.
All reactions