Skip to content

Design Library fails to load with block preview error (TypeError: un[t] is not a function) #2758

@selul

Description

@selul

Description

When opening the Design Library, the preview crashes and shows:

This block has encountered an error and cannot be previewed.

Console shows:

9installHook.js:1 TypeError: un[t] is not a function
    at or (compose.min.js?ver=42e10ac07bc50b2c5314:1:31609)
    at edit (blocks.js?ver=20ce5cad211d8091741a:28:71823)
    at mf (react-dom.min.js?ver=18.3.1.1:105:412)
    at Qk (react-dom.min.js?ver=18.3.1.1:250:214)
    at Ri (react-dom.min.js?ver=18.3.1.1:195:185)
    at Ok (react-dom.min.js?ver=18.3.1.1:195:116)
    at Nd (react-dom.min.js?ver=18.3.1.1:194:492)
    at Qf (react-dom.min.js?ver=18.3.1.1:187:439)
    at Ni (react-dom.min.js?ver=18.3.1.1:185:400)
    at S (react.min.js?ver=18.3.1.1:17:25)

Expected: Design Library previews should render without errors.
Actual: The preview fails and displays the error above. Initial investigation suggests a problem with the @wordpress/compose pipeline in Otter's blocks.js, possibly due to a non-function value in a composed hook or version mismatch.

Step-by-step reproduction instructions

  1. Open the WordPress block editor.
  2. Open Design Library (Otter).
  3. Attempt to preview or use a library item.

Screenshots, screen recording, code snippet or Help Scout ticket

Error screenshot

Environment info

WP 7.0

Is the issue you are reporting a regression

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis label could be used to identify issues that are caused by a defect in the product.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions