Gutenberg: Previewing a legacy widget shows error

Created on 30 Sep 2020  路  6Comments  路  Source: WordPress/gutenberg

I was exploring the new widget interface and clicked an existing widget in my footer, which was a legacy block. On clicking preview, I got the following error.

2020-09-30 18 37 15

My recommendation I think would be to have preview working, but I am not aware of why it didn't work in this case. Perhaps something didn't activate with the legacy block?

[Block] Legacy Widget [Feature] Widgets Screen [Type] Bug

All 6 comments

Potentially some more details here, merging: https://github.com/WordPress/gutenberg/issues/25762

Removing needs testing as seems @paaljoachim confirms in the other issue this is also case for him.

This works for me running latest master.

it-works

@karmatosed @paaljoachim: Could you check again? Are there any errors in the DevTools console?

I am still seeing the error @noisysocks Robert.

Another test using Twenty Twenty theme with Gutenberg plugin 9.1. This time using a live online test site.

Widget-legacy-preview-error

DevTools console:
Screen Shot 2020-10-02 at 10 50 04

Looks like this was fixed by https://github.com/WordPress/gutenberg/pull/25792 but let me know if you're still encountering the error and we can re-open.

I am giving a confirmation that the error is now gone. Previewing works in 9.1.1..

Screen Shot 2020-10-08 at 16 59 23

Was this page helpful?
0 / 5 - 0 ratings