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
To fix this i have made a generator file which just logs the unknown type instead, so that all the other types work, we might implement som rendering for it in the future but for now this works, and then we handle the type manually.
A field that fails, its the allowedResouces that messes it up:
We use contentful nataive external references and ran into a problem where the whole rendering process gets blocked by a throw line in the renderer:
cf-content-types-generator/src/renderer/field/render-prop-resource-link.ts
Line 27 in d26dc75
To fix this i have made a generator file which just logs the unknown type instead, so that all the other types work, we might implement som rendering for it in the future but for now this works, and then we handle the type manually.
A field that fails, its the allowedResouces that messes it up:
I have fixed it by writing a part of the rendering my self and removed the throw error part.
The code can be called by creating a package.json script with this
tsx ./contentfulTypes.ts
The text was updated successfully, but these errors were encountered: