• I started to get console errors in Gutenberg editor when editing posts and it seems Lightweight Accordion is somehow blocking JS:

    react-dom.js?ver=18.2.0:73 Warning: Cannot update a component (Unknown) while rendering a different component (edit). To locate the bad setState() call inside edit, follow the stack trace as described in https://reactjs.org/link/setstate-in-render
        at edit (https://mystaging.site/wp-content/plugins/lightweight-accordion/block/index.js?ver=1681238865:68:29)

    If I disable Lightweight Accordion I don’t have this errors in console.

    Nor the The block editor requires JavaScript. Please enable JavaScript in your browser settings… notification.

    This was not happening on previous versions (WordPress, Lightweight Accordion, Blocksy theme, and other plugins). I suspect Lightweight Accordion is not the sole culprit, but the editor does work when I disable Lightweight Accordion.

    Any idea what can be happening here?

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Andy Feliciotti

    (@someguy9)

    Hey @alvarogois, do you mind sending your whole console log error, I am thinking another plugin is conflicting (I just tested the plugin with Blocksy theme and it works fine on my end).

    Plugin Author Andy Feliciotti

    (@someguy9)

    I see the error now but I don’t get the “The block editor requires JavaScript. Please enable JavaScript in your browser settings” message. I think I may be able to fix this but more context is welcome!

    Thread Starter Alvaro Gois dos Santos

    (@alvarogois)

    Hi,

    Not sure if this is the way to share the log. Let me know if it’s OK.

    I do use Lazy Blocks to build custom blocks, and it was working fine until a few days ago.

    I don’t believe I made any changes besides updates. (I was naive enough to trust that the staging site update was fine. I should know better.)

    Thanks for your help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Console errors in editor and “block editor requires JavaScript” notice’ is closed to new replies.