Opened 4 years ago
Last modified 4 years ago
#51571 new defect (bug)
Output visible error when npm package is missing a dependency
Reported by: | isabel_brison | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | |
Focuses: | Cc: |
Description
If a block-editor related package is missing a dependency, things silently fail with no visible pointer to the problem. A case in point is the recent @wordpress/reusable-blocks
package that was split out from @wordpress/editor
. Updating the npm packages caused a WSOD on the editor, with no indication of what was wrong.
There should be some error message in this situation that can help us debug it.
Change History (2)
Note: See
TracTickets for help on using
tickets.
Hereabouts: https://github.com/WordPress/wordpress-develop/blob/master/src/wp-includes/class.wp-dependencies.php#L185 might be a good place to add a warning of some sort.