-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
Error when clicking on any sort of dropdown/select: TypeError: g.indexOf is not a function & react-error-boundary requires either a fallback #14993
Comments
I just found some sort of the same bug pattern here. FYI: |
I'm having the same problem both on Prod and locally. |
Hi all, I just did some more testing and debugging. As described in the bug report, I used the newest version v4.5.2. After downgrading to v4.5.0 the error is gone and all works good. So there must be an issue with v4.5.1 or v4.5.2 I think... |
Downgrading to 4.5.1 worked for me. |
I confirm that error occur in production (not dev) when I click on paginations button's
Downgrading to 4.5.1 worked for me. |
I'm facing the exact same problem, but in my case downgrading didn't work. In my case, I am using a generic The Each type of article ( With Strapi 4.5.0, 4.5.1 and 4.5.2, when creating an entry for By changing the component property from required to optional, I was able to edit any "one-to-many" relationship field in the component. This is an acceptable workaround for our team at this time. |
I'm facing the same issue. A downgrade helped. However, with strapi 4.5.1 and the versioning plugin https://github.com/notum-cz/strapi-plugin-content-versioning I sometimes get the behaviour that when I switch the language, instead of showing me the entry in the other language, it gives me the option to create a new entry. That always happens, when I switch from an "unmatched" version, so e.g. I have v1 and v2 for an entry in english and only v1 for the same entry in french. Now when I selected v2 in english and switch to french, instead of showing me the entry v1 in french, strapi wants to create a new entry (which when I create the entry results in a whole new entry in english, not even a new version in french). I'm not sure if these issues are related. |
same here, but im using 4.5.1 |
Any news on this issue? I am having the same problem. Do not want to go downwards. |
upgrading to 4.5.2 fix the issue so weird 😅 |
UpdateStill seeing this error in version 4.5.3. As I have seen, as mentioned in #15031 you have provided a working error boundary to stop the component tree from desintegrating prematurely. The issue still persists tho. Following output is logged: |
I'm also having the same issue when trying to change the position of a component with relations in a Dynamic Zone. Had to downgrade to 4.4.7 to make it work |
The same error occurs when switching locals in v4.5.3. |
I've been unable to reproduce this locally. If someone can share a minimal viable reproduction of the issue that would help us to actively debug this and find a solution 😄 see this for more information on how you can approach it. |
I'm trying to build a fresh project that reproduces this error, but I can't so far. When I update all dependencies in my current project, I'm receiving the error though. I'll run some more tries to reproduce the issue on a fresh project. |
Thanks @landoephan 😄 |
got it! you need to add the "import-export-entries"-plugin (https://github.com/Baboo7/strapi-plugin-import-export-entries) and activate both.
with these two configs everything works fine:
|
do you still need a repo? |
I'm getting an error when I open dropdowns and a white page when I switch tabs from "Content Manager" to Content-Type Builder" |
Thanks for the information & repro @landoephan, we'll try find some time and review this issues to get it solved as fast as we can. |
thanks! |
Hi everyone, I've had some time to look into this error via the repro shared by @landoephan, I haven't been able to reproduce this exact error. I did face this: TypeError: Cannot convert undefined or null to object
at hasOwnProperty (<anonymous>) But found deleting the If it does, you will need to provide a reproduction of this issue for us to investigate further. |
seems to work, thank you! |
We haven't been able to reproduce this error and no one has been able to provide an minimal repro of the error occurring so I'm going to close this for now & if someone can provide a reproduction then we can reopen and revisit the issue. Before you do that, I would encourage you to try this resolution first – #14993 (comment) |
@joshuaellis Has been fixed for me in version 4.5.4. |
The same error occurs when switching locals in v4.5.4. I am using typescript. The problem occurs with the command "dependencies": {
"@strapi/plugin-i18n": "4.5.4",
"@strapi/plugin-users-permissions": "4.5.4",
"@strapi/provider-email-nodemailer": "4.5.4",
"@strapi/provider-upload-aws-s3-custom": "file:providers/strapi-provider-upload-aws-s3-custom",
"@strapi/strapi": "4.5.4",
"mysql": "^2.18.1"
} providers/strapi-provider-upload-aws-s3-custom/package.json "dependencies": {
"@aws-sdk/client-s3": "3.226.0",
"@aws-sdk/lib-storage": "3.226.0",
"@aws-sdk/signature-v4-crt": "3.226.0"
} and my plugin's package.json "dependencies": {
"@aws-sdk/client-s3": "3.226.0",
"@aws-sdk/lib-storage": "3.226.0",
"@aws-sdk/signature-v4-crt": "3.226.0",
"@monaco-editor/react": "^4.4.6",
"csv-parse": "^5.3.3",
"csv-stringify": "^6.2.3",
"html-validate": "^7.11.1",
"jszip": "^3.10.1",
"monaco-editor": "^0.34.1"
} Notes:
|
I'll reopen this but can you provide more in-depth instructions to reproduce the issue? Maybe record a loom video? |
Sorry, wrong information. https://github.com/strapi/strapi/blob/v4.5.4/packages/core/admin/webpack.config.js#L72-L78 In my case, I don't need to support older browsers, so if I want to reduce the file size, changing the target option to es2018 or higher will work. |
@derrickmehaffy I think we can close this again in this circumstance. We're not in a position to update the |
Gotcha will do |
Bug report
I just deployed my strapi application to production via DigitalOcean (app-plattform). The entire process worked without any bigger issues and the app runs in production. As I now started to work on content, I just noticed a strange bug/behavior. Whenever I click on any of the select/dropdown components in the Content Manager like the "Filters" dropdown or the "language" dropdown inside the content-table, I am getting a white blank page and some strange errors in the browser console (screenshots).
This behavior happens only on the deployed version of strapi (PROD node env). Locally, everything is working fine and with no issues.
Required System information
Describe the bug
I just deployed my strapi application to production via DigitalOcean (app-plattform). The entire process worked without any bigger issues and the app runs in production. As I now started to work on content, I just noticed a strange bug/behavior. Whenever I click on any of the select/dropdown components in the Content Manager like the "Filters" dropdown or the "language" dropdown inside the content-table, I am getting a white blank page and some strange errors in the browser console (screenshots).
This behavior happens only on the deployed version of strapi (PROD node env). Locally, everything is working fine and with no issues.
Steps to reproduce the behavior
Expected behavior
The expected behavior is that all the dropdown and select components should work fine. I as a content-admin should be able to set filters, change the language etc.
Screenshots
Click on the "Content available in" dropdown:
![image](https://user-images.githubusercontent.com/18368657/203822194-53dd82a9-24d6-4690-b146-d1fdc079b030.png)
The bug occures not only when clicking on this dropdown. The bug also occures when clicking on the "Filters" button, the "Pagination (Entries per page)" dropdown, the "x currently selected" dropdown etc.
Blank white page with errors appearing:
![image](https://user-images.githubusercontent.com/18368657/203822278-331946b7-1eba-4768-b30f-5ca494c317b4.png)
Code snippets
Browser error messages:
Additional context
Thanks in advance for your help!
The text was updated successfully, but these errors were encountered: