Skip to content

TypeError: Cannot read property 'RichText' of undefined in gutenberg.js #46

@wrongakram

Description

@wrongakram

Hey Alecaddd,

Love the theme! Great work!

I'm having an issue with getting Gutenberg to work correctly when editing a page on the new Wordpress 5.0. The add new block button is disabled for me. Opening the console gives me an error.

Error:
TypeError: Cannot read property 'RichText' of undefined

The line const { RichText, BlockControls, AlignmentToolbar } = wp.editor

Changing wp.editor to wp.blocks removes the error but I still seem to have an issue with getting the add new block button to work properly. I'll keep digging and can hopefully find a solution.

Can you reference the documentation for the API that you used. Since the one I found seems a bit different.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions