Skip to content
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

Warning: Support for defaultProps will be removed from function components in a future major release #203

Open
1 task done
faisal-alvi opened this issue Jul 30, 2024 · 0 comments
Labels
type:bug Something isn't working.
Milestone

Comments

@faisal-alvi
Copy link
Member

Describe the bug

Fix the Gutenberg block warning:

Text version:

react-dom.development.js:86 Warning: d: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
    at d (http://wpne.local/wp-content/plugins/publisher-media-kit//dist/blocks/tabs-item-block.js?ver=f30a6866fccb18fa5f0a:1:470)
    at renderAppender
    at div
    at BlockListAppender (http://wpne.local/wp-includes/js/dist/block-editor.js?ver=2cb36d67922bfdc27a1d:48496:3)
    at Items (http://wpne.local/wp-includes/js/dist/block-editor.js?ver=2cb36d67922bfdc27a1d:50826:3)
    at BlockListItems
    at UncontrolledInnerBlocks (http://wpne.local/wp-includes/js/dist/block-editor.js?ver=2cb36d67922bfdc27a1d:50247:5)
    at div
    at div
    at http://wpne.local/wp-includes/js/dist/block-editor.js?ver=2cb36d67922bfdc27a1d:50320:28
    at div
    at http://wpne.local/wp-content/plugins/publisher-media-kit//dist/blocks/tabs-item-block.js?ver=f30a6866fccb18fa5f0a:1:1250
    at http://wpne.local/wp-includes/js/dist/data.js?ver=6f178ef23ef546c51cae:4339:22
    at WithSelect(Component) (http://wpne.local/wp-includes/js/dist/compose.js?ver=5da03170a54cb446b827:3334:10)
    at Edit (http://wpne.local/wp-includes/js/dist/block-editor.js?ver=2cb36d67922bfdc27a1d:39093:5)
    at http://wpne.local/wp-includes/js/dist/block-editor.js?ver=2cb36d67922bfdc27a1d:17556:21
    at http://wpne.local/wp-includes/js/dist/editor.js?ver=e15506639990b108fc28:6359:69
    at FilteredComponentRenderer (http://wpne.local/wp-includes/js/dist/components.js?ver=54eab95952fe254d64e9:70586:9)
    at EditWithGeneratedProps (http://wpne.local/wp-includes/js/dist/block-editor.js?ver=2cb36d67922bfdc27a1d:39111:5)
    at BlockEdit (http://wpne.local/wp-includes/js/dist/block-editor.js?ver=2cb36d67922bfdc27a1d:39297:3)
    at div
    at Block (http://wpne.local/wp-includes/js/dist/block-editor.js?ver=2cb36d67922bfdc27a1d:40586:3)
    at BlockCrashBoundary (http://wpne.local/wp-includes/js/dist/block-editor.js?ver=2cb36d67922bfdc27a1d:39601:5)
    at BlockListBlock (http://wpne.local/wp-includes/js/dist/block-editor.js?ver=2cb36d67922bfdc27a1d:40598:10)
    at http://wpne.local/wp-includes/js/dist/block-editor.js?ver=2cb36d67922bfdc27a1d:35390:5
    at http://wpne.local/wp-includes/js/dist/block-editor.js?ver=2cb36d67922bfdc27a1d:17625:99
    at FilteredComponentRenderer (http://wpne.local/wp-includes/js/dist/components.js?ver=54eab95952fe254d64e9:70586:9)
    at http://wpne.local/wp-includes/js/dist/data.js?ver=6f178ef23ef546c51cae:4489:25
    at BlockListBlockProvider (http://wpne.local/wp-includes/js/dist/block-editor.js?ver=2cb36d67922bfdc27a1d:40948:5)
    at Items (http://wpne.local/wp-includes/js/dist/block-editor.js?ver=2cb36d67922bfdc27a1d:50826:3)
    at BlockListItems
    at UncontrolledInnerBlocks (http://wpne.local/wp-includes/js/dist/block-editor.js?ver=2cb36d67922bfdc27a1d:50247:5)
    at div
    at div
    at http://wpne.local/wp-includes/js/dist/block-editor.js?ver=2cb36d67922bfdc27a1d:50320:28
    at div
    at div
    at http://wpne.local/wp-content/plugins/publisher-media-kit//dist/blocks/tabs-block.js?ver=ae40650db20af6e1a5dd:2:1852
    at http://wpne.local/wp-includes/js/dist/compose.js?ver=5da03170a54cb446b827:3288:10
    at http://wpne.local/wp-includes/js/dist/data.js?ver=6f178ef23ef546c51cae:4489:25
    at http://wpne.local/wp-includes/js/dist/data.js?ver=6f178ef23ef546c51cae:4339:22
    at WithSelect(WithDispatch(IfCondition(Component))) (http://wpne.local/wp-includes/js/dist/compose.js?ver=5da03170a54cb446b827:3334:10)
    at Edit (http://wpne.local/wp-includes/js/dist/block-editor.js?ver=2cb36d67922bfdc27a1d:39093:5)
    at http://wpne.local/wp-includes/js/dist/block-editor.js?ver=2cb36d67922bfdc27a1d:17556:21
    at http://wpne.local/wp-includes/js/dist/editor.js?ver=e15506639990b108fc28:6359:69
    at FilteredComponentRenderer (http://wpne.local/wp-includes/js/dist/components.js?ver=54eab95952fe254d64e9:70586:9)
    at EditWithGeneratedProps (http://wpne.local/wp-includes/js/dist/block-editor.js?ver=2cb36d67922bfdc27a1d:39111:5)
    at BlockEdit (http://wpne.local/wp-includes/js/dist/block-editor.js?ver=2cb36d67922bfdc27a1d:39297:3)
    at div
    at Block (http://wpne.local/wp-includes/js/dist/block-editor.js?ver=2cb36d67922bfdc27a1d:40586:3)
    at BlockCrashBoundary (http://wpne.local/wp-includes/js/dist/block-editor.js?ver=2cb36d67922bfdc27a1d:39601:5)
    at BlockListBlock (http://wpne.local/wp-includes/js/dist/block-editor.js?ver=2cb36d67922bfdc27a1d:40598:10)
    at http://wpne.local/wp-includes/js/dist/block-editor.js?ver=2cb36d67922bfdc27a1d:35390:5
    at http://wpne.local/wp-includes/js/dist/block-editor.js?ver=2cb36d67922bfdc27a1d:17625:99
    at FilteredComponentRenderer (http://wpne.local/wp-includes/js/dist/components.js?ver=54eab95952fe254d64e9:70586:9)
    at http://wpne.local/wp-includes/js/dist/data.js?ver=6f178ef23ef546c51cae:4489:25
    at BlockListBlockProvider (http://wpne.local/wp-includes/js/dist/block-editor.js?ver=2cb36d67922bfdc27a1d:40948:5)

Steps to Reproduce

Edit the Media Kit page, see the console.

Screenshots, screen recording, code snippet

image

Environment information

No response

WordPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@faisal-alvi faisal-alvi added the type:bug Something isn't working. label Jul 30, 2024
@faisal-alvi faisal-alvi moved this from Incoming to To Do in Open Source Practice Jul 30, 2024
@faisal-alvi faisal-alvi added this to the 1.3.6 milestone Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working.
Projects
Status: To Do
Development

No branches or pull requests

1 participant