Closed seccentral closed 1 day ago
Please add a reproduction in order for us to be able to investigate.
Depending on the quality of reproduction steps, this issue may be closed if no reproduction is provided.
invalid-reproduction
label?To be able to investigate, we need access to a reproduction to identify what triggered the issue. We prefer a link to a public GitHub repository created with create-payload-app@beta -t blank
or a forked/branched version of this repository with tests added (more info in the reproduction-guide).
To make sure the issue is resolved as quickly as possible, please make sure that the reproduction is as minimal as possible. This means that you should remove unnecessary code, files, and dependencies that do not contribute to the issue. Ensure your reproduction does not depend on secrets, 3rd party registries, private dependencies, or any other data that cannot be made public. Avoid a reproduction including a whole monorepo (unless relevant to the issue). The easier it is to reproduce the issue, the quicker we can help.
Please test your reproduction against the latest version of Payload to make sure your issue has not already been fixed.
Ensure the link is pointing to a codebase that is accessible (e.g. not a private repository). "example.com", "n/a", "will add later", etc. are not acceptable links -- we need to see a public codebase. See the above section for accepted links.
omg yes i had a fight with this bug the whole day when i was working with job tasks and all the TS types were missing. I can confirm that it randomly works
🚀 This is included in version v3.0.2
generate:types
6 times with v3.0.1
.
Result: 3 times with no output. 3 times executed ok.
generate:types
6 times with v3.0.2
Result: 6 times executed ok 👍
Thanks for confirming @andershermansen!
This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.
Describe the Bug
As reported by multiple users on Discord (myself included) it seems to be a platform independent issue that whenever you attempt to
generate:types
manually, the command executes without error, without any sort of feedback, but does not generate the types. This has been tested on user code migrated from beta to 3.0 stable but I also tested it on the official payload default website template that comes with create-payload-app for the current 3.0.1 version just to be sure.Link to the code that reproduces this issue
official payload 3 stable website template
Reproduction Steps
run
generate:types
. It - MAY - work from the 1st try, but usually it takes a random amount of tries. Original User reporting success after spamming the command multiple times (frustration saved the day?) here https://discord.com/channels/967097582721572934/1308797740087775232Which area(s) are affected? (Select all that apply)
area: core
Environment Info
PS: the payload command should have some output, feedback, or at least throw something. as it is it has no --help, no list of commands no explanatory output accesible right away from the cli