JavaScript for WordPress Forums Gutenberg Development InspectorControls – "The editor has encountered an unexpected error"

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #43394
    epakrat
    Participant

    ——————ENVIRONMENT ——————-
    LOCAL XAMPP V3.2.2
    Windows 10 v1709
    Browser: Firefox Quantum v59.0.1 64-bit
    WP v4.9.4
    PHP v7.2.1
    Gutenberg v2.4.0
    jsforwp-blocks plugin zip – most current github release

    Plugins Active: Gutenberg, jsforwp gutenberg examples
    Theme Active: Twenty Seventeen

    ————————————————-

    Issue Description: Attempting an insert of either of the two InspectorControls example blocks results in a error message “The editor has encountered an unexpected error.” with 3 buttons, “Attempt Recovery”, “Copy Post Text”, “Copy Error”.

    F12 Browser Dev Console says: “Editable is deprecated and will be removed from Gutenberg in 2.5. Please use wp.blocks.RichText instead.”

    NOTE: Changing the jsforwp-blocks plugin to use RichText instead of Editable would seem to have eliminated the console message above but doesn’t fix the issue causing the unexpected error message to appear.

    Question: Do you intend to update the github repo with working versions ahead of any re-recording of the videos?

    Please advise. Thanks for your time. 🙂

    #43414
    Zac Gordon
    Keymaster

    Yes! Good catch. Sorry about that.

    Editable changing to RichText and some other updates have occurred and are no longer supported.

    I am starting this week to begin redoing all the examples and re-recording the course to include the updates 🙂

    #43422
    epakrat
    Participant

    Cool! I’ll also be interested to know why the current examples broke and how they’ll now need to be changed to work again. That’s educational in itself (for curious people like myself, anyway)! Thanks.

    #43430
    Zac Gordon
    Keymaster

    I believe that one is just because Editable changed its name to RichText. Some other small things like focus has changed to isSelected as well.

    Will get those up as soon as can 🙂

    #43432
    Zac Gordon
    Keymaster

    I believe that one is just because Editable changed its name to RichText. Some other small things like focus has changed to isSelected as well.

    Will get those up as soon as can 🙂

    #43693
    dimensionmedia
    Participant

    FYI – just wanted to say that I pinged poor Zac on this issue a few minutes ago. Should have checked the forum first.

    Yes, i’m getting the same problems w/ my InspectorControl example when i upgraded to latest Gutenberg (2.4). Reverting back so i can continue and kudos to Zac for keeping this updated! 🙂

    #44712
    Zac Gordon
    Keymaster

    Hey folks! This is a delayed update but all these code samples should be fixed now!

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.