System Information
- Strapi Version: latest
- Operating System: mac
- Database: ?
- Node Version: 14.18.1
- NPM Version:
- Yarn Version:
It’s literally been days for me trying to figure this out. I’ve followed this tutorial:
When I follow the tutorial I get a whole different fragmentTypes.json
file then the poster did:
{
"possibleTypes": {
"GenericMorph": [
"ComponentContentImage",
"ComponentContentJumbotron",
"ComponentContentText",
"HomePage",
"I18NLocale",
"Page",
"Property",
"UploadFile",
"UploadFolder",
"UsersPermissionsPermission",
"UsersPermissionsRole",
"UsersPermissionsUser"
],
"HomePageContentSectionsDynamicZone": [
"ComponentContentImage",
"ComponentContentText",
"Error"
]
}
}
resulting in a Cannot read property 'types' of undefined
error:
introspectionResultData.__schema.types.forEach(function (type) {
And that makes sense, because there’s no __schema
in my fragmentTypes.json
How can I fix this, it’s very annoying that this does not match the tutorial.
Thanks in advance.