Describe the bug
Stackable blocks crash in the block editor when the Gutenberg React 19 experiment is enabled.
The browser console reports:
TypeError: Cannot read properties of undefined (reading 'includes')
at Jr (stk.js?ver=3.20.2:2:530131)
Steps to reproduce
- Install and activate Gutenberg 24.0.0.
- Go to Settings > Gutenberg > Experiments.
- Enable the React 19 experiment and save.
- Create or edit a page in the block editor.
- Observe the block error in the editor and inspect the browser console.
Root cause
The reported minified location stk.js:2:530131 source-maps to:
src/components/inspector-tabs/index.js:71
The failing expression is:
props.tabs.includes( defaultTab )
React 19 removes defaultProps support for function components. Consequently, props.tabs is undefined and the call to .includes() throws
Describe the bug
Stackable blocks crash in the block editor when the Gutenberg React 19 experiment is enabled.
The browser console reports:
Steps to reproduce
Root cause
The reported minified location
stk.js:2:530131source-maps to:The failing expression is:
React 19 removes
defaultPropssupport for function components. Consequently,props.tabsis undefined and the call to.includes()throws