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
The issue appears when you want to export a field into a seperate file, here for example I have exported my Icon field into a seperate file, importing it where needed. However, when running generate:types it does not generate the type for this field, although it should have by giving it the interfaceName.
Describe the Bug
The issue appears when you want to export a field into a seperate file, here for example I have exported my Icon field into a seperate file, importing it where needed. However, when running
generate:types
it does not generate the type for this field, although it should have by giving it theinterfaceName
.Here is an example of how the iconField is imported.
Here is a screenshot of the "socialMediaLinks" in the file
![Image](https://private-user-images.githubusercontent.com/7657101/391645779-e0d4e059-15e7-4ada-a7e3-0f8e60a775dc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMjA3NjQsIm5iZiI6MTczOTEyMDQ2NCwicGF0aCI6Ii83NjU3MTAxLzM5MTY0NTc3OS1lMGQ0ZTA1OS0xNWU3LTRhZGEtYTdlMy0wZjhlNjBhNzc1ZGMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDlUMTcwMTA0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YzQ2NjVmNWE1MjM4ZDU3Y2I4MWM5NjExZGQ5ZWI3MzU4Y2UxM2Y1ZmNmZDJkYjlkYzNhMjlmMDYxYjhmNDY0MiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.MS1Z97Byr5BKcW9NUF4L4TtDfyOpkz7bfbw3SJhCDLk)
payload-types.ts
Link to the code that reproduces this issue
https://github.com/Patrickroelofs/patrickroelofs.com/blob/main/src/payload/fields/icons.ts
Reproduction Steps
interfaceName
generate:types
will not create the type as defined byinterfaceName
An exported field will not generate types:
Which area(s) are affected? (Select all that apply)
area: core
Environment Info
The text was updated successfully, but these errors were encountered: