Cannot read properties of undefined (reading ‘get’)
-
When inserting the slide block into the editor, I’m getting the following error:
- Cannot read properties of undefined (reading ‘get’)
I’m using the Twenty Twenty-Three theme with WordPress 6.4.1.
The console error says it is coming from the following file:
- slider-inserter.js
Here is the minified code where it is happening:
e.registerBlockType)(t, {
apiVersion: 2,
icon: r.C6,
edit: function(e) {
const t = (0,
s.useBlockProps)()
, l = (0,
o.get)(e, "attributes.selectedSlider.id")However, creating a new slide from the Admin Blockslide – Add New page and using the shortcode works.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Cannot read properties of undefined (reading ‘get’)’ is closed to new replies.