Make WordPress Core

Opened 15 months ago

Last modified 15 months ago

#58822 new defect (bug)

Gutenberg - releases must work with the latest react version

Reported by: malthert's profile malthert Owned by:
Milestone: Awaiting Review Priority: normal
Severity: blocker Version: 6.3
Component: General Keywords:
Focuses: Cc:

Description

Gutenberg is falling behind more and more, bundling outdated/unmaintained packages, preventing the use of the latest react.
e.g. https://www.npmjs.com/package/@wordpress/block-editor bundles

"react-autosize-textarea": "7.1.0",

Which requires react 16 (!!).
There are far more examples than that, that all shipped with WP 6.2.

Github issues for dependencies mostly go unhandled too, because there are 200 packages now + the @types ones (which are also inconsistent, since some have types bundled while others haven't)

The way gutenberg is maintained, organized and managed needs some major discussion and overhaul by someone who has enough credentials in the WP community to provide a clear plan ahead with Gutenberg.

Change History (2)

#1 @swissspidy
15 months ago

  • Component changed from General to Editor
  • Keywords close added
  • Severity changed from blocker to normal

Tickets related to the Gutenberg Editor should be filed on the Gutenberg GitHub Repository. Would you mind creating this ticket over there?

https://github.com/WordPress/gutenberg/issues/new/choose

FWIW Gutenberg uses React 18, so it‘s definitely possible for your own projects to do so as well.

#2 @malthert
15 months ago

  • Component changed from Editor to General
  • Keywords close removed
  • Severity changed from normal to blocker

There are a variety of open dependency issues there already, that have been open since months without anything done about them.

This is exactly one of the issues that Gutenberg via the github issue tracker seems to be an afterthought in the WP release process.

FWIW Gutenberg uses React 18, so it‘s definitely possible for your own projects to do so as well.

It is, but it reports tons of errors, especially when also using the @types packages in some cases or even worse bundles react itself (e.g. @types/wordpressmedia-utils)

Some packages (e.g. reakit) hasn't been updated in 2 years, since they renamed to ariakit. Those dependencies should all be thrown out, as apparently they're not used when nobody realized the whole reakit project changed 2 years ago...

Note: See TracTickets for help on using tickets.