strapi-plugin-multi-select icon indicating copy to clipboard operation
strapi-plugin-multi-select copied to clipboard

TypeError: Cannot read properties of null (reading 'includes') when adding component with custom plugin

Open dmarkbreiter opened this issue 3 years ago • 10 comments

Strapi version: 4.6.0 strapi-plugin-multi-select: 1.1.0

When adding a component with the custom multi-select plugin field to a dynamic zone, I get a "Whoops! Something went wrong. Please, try again." (see screenshot below). I've also included the console error:

TypeError: Cannot read properties of null (reading 'includes')
    at ht (main.ee2267fb.js:12894:988)
    at main.ee2267fb.js:12894:1690
    at Array.map (<anonymous>)
    at be (main.ee2267fb.js:12894:1249)
    at _o (main.ee2267fb.js:9836:54688)
    at l4 (main.ee2267fb.js:9840:9133)
    at Fd (main.ee2267fb.js:9840:989)
    at vc (main.ee2267fb.js:9840:917)
    at Cc (main.ee2267fb.js:9840:768)
    at Ec (main.ee2267fb.js:9838:11068)
qr @ main.ee2267fb.js:9838

Screen Shot 2023-03-10 at 4 11 27 PM

dmarkbreiter avatar Mar 11 '23 01:03 dmarkbreiter

Did you find a way to solve the problem?

The same thing happens to me

arganarazalvaro avatar Mar 23 '23 20:03 arganarazalvaro

Same here. Happened when upgrading Strapi from v4.5.1 to v4.5.6.

aida-b-f avatar Mar 29 '23 12:03 aida-b-f

@arganarazalvaro I couldn't find a solution and had to remove the plug-in entirely and fallback on the built-in select option.

@Zaydme any update on the issue?

dmarkbreiter avatar Apr 01 '23 18:04 dmarkbreiter

I ended up removing the plugin too, thanks!

arganarazalvaro avatar Apr 01 '23 18:04 arganarazalvaro

I've got the plugin working again by upgrading it to 1.1.0

 "@strapi/strapi": "4.9.0",
 ....
 "strapi-plugin-multi-select": "^1.1.0"

aida-b-f avatar Apr 04 '23 08:04 aida-b-f

This issue is stale because it has been open for 14 days with no activity.

github-actions[bot] avatar Apr 19 '23 01:04 github-actions[bot]

@aida-b-f, I'm also running v 1.1.0. @Zaydme does the plugin work on newer version of Strapi?

dmarkbreiter avatar Apr 27 '23 18:04 dmarkbreiter

This issue is stale because it has been open for 14 days with no activity.

github-actions[bot] avatar May 13 '23 01:05 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar May 27 '23 01:05 github-actions[bot]

Fixed with feat: replace strapi select with react-select #14

Please update to next release which will be 1.2.0

I will not close this issue until someone else confirms it works well with dynamic zones now.

Zaydme avatar Jul 16 '23 12:07 Zaydme

Migrated to strapi v5, please use @^2.0.0

Zaydme avatar Oct 10 '24 00:10 Zaydme