Closed tiago-meireles closed 1 month ago
The duplication errors are now resolved! For anyone else finding this in the future, note that the "localized within localized" fields have not been fixed as a result of the above PR, because we are going to prevent that type of configuration in the future as it is not necessary / valid to have a localized field within a localized field.
This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.
Link to reproduction
No response
Payload Version
beta.87
Node Version
20 LTS
Next.js Version
15.0.0-canary.104
Describe the Bug
Blocks inside localized blocks are creating multiple content occurrences. Localized Blocks inside localized blocks cannot be migrated.
Here's the issue in detail
https://github.com/user-attachments/assets/c561e35d-7261-4b75-ae34-529931d5068c
To test this, created 2 blocks (
BlockInsideBlock
andMediaBlock
)MediaBlock
BlockInsideBlock
I then added a localized blocks field with the
BlockInsideBlock
to the existing fields of thePages
collection.Since the Media content was the same between the EN and FR locales, I tried to add localization to the
content
field in the BlockInsideBlock (currently commented), but I always get the errorERROR (payload): Error: cannot connect to Postgres. Details: Cannot read properties of undefined (reading 'Symbol(drizzle:Name)')
when creating the migrations.Is there any current restrictions in the use of blocks inside blocks that could be causing the migrate:create command to fail with this error message? Or for the duplication of content for blocks inside blocks?
Reproduction Steps
MediaBlock
and theBlockInsideBlock
BlockInsideBlock
and make that field localizedERROR (payload): Error: cannot connect to Postgres. Details: Cannot read properties of undefined (reading 'Symbol(drizzle:Name)')
is presentedAdapters and Plugins
db-postgres