-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read properties of undefined (reading 'length') after upgrade to 4.20.3 #19660
Comments
I am experiencing the same issue |
Same issue here, I'm on version 4.20.2 |
Affects version 4.20.1 also |
Same issue here, on 4.20.5 |
same issue |
4.21.0 still here |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
That is no option for me |
Internal TID: 6529 |
Hello, @vsamofal can you share what version you were upgrading from so we can try to reproduce ? we can't reproduce by just using the v4.20.x version as of now. Something you can test (locally at 1st and with non important data Also this might have been fixed in more recent version of Strapi, have you tried upgrading to latest since then ? |
@alexandrebodin I'm facing this error with the latest version of Strapi, 4.23.1. I'm also happy to jump on a call with you to replicate the bug successfully. I think the issue is related to the use of a repeatable component in a certain context. The last version in which this bug does not occur is 4.16.2. bug1.mp4 |
@alexandrebodin Question collection type. |
I was on 4.16.1, and quite a similar situation as @Bobivankenobi has, I do have a repeatable component in my collection type as well |
Thanks for the details 🙌 I'll dig into it later today |
ℹ️ The fix will be released tomorrow :) |
Awesome @alexandrebodin Thank you. |
Bug report
Required System information
STRAPI_ENFORCE_SOURCEMAPS=true in your .env --> (sorry I tried it, but it's not working)
Describe the bug
After to upgrade to latest version, frontend is failing with exception on reading a length property, on one particular collection, and lead to white screen in both dev and prod modes. Refreshing the page helps, and it loading entity and allows me to add/edit and do everything that I want. But once I go to another collection and moving back to this entity - white screen again. Refresh and it's working just fine.
If I'm switching menu and getting back to content manager, I can open this page fine, so the problem appears only when I'm switching between collections.
If I'm switching to single types, I can back to collection just fine as well. So again the problem appears only
Expected behavior
Switching between collections should work fine
Code snippets
Sorry for this... but I can't make source map works
Error happens here, f is undefined
but when I'm refreshing the page, this field is there, seems like some async processing happen:
hopefully it helpful and enough, if not let me know what else to share
The text was updated successfully, but these errors were encountered: