Problem/Motivation
This issues is not unique to views_data_export, but it comes up when trying to keep D9 running while also supporting newer versions of PHP and Drush.
#3489598: After update drush quits with error "Trait not found" has a fix for it in https://git.drupalcode.org/project/search_api/-/merge_requests/203/diffs
In other cases like Devel, the answer is to update to Drush 12 (https://github.com/drush-ops/drush/issues/5941).
Steps to reproduce
Drupal 9.5.11, PHP 8.1.33, Drush 10 and drupal/views_data_export:^1.7
Proposed resolution
The quick fix is just to patch away https://git.drupalcode.org/project/views_data_export/-/tree/8.x-1.x/src/... or upgrade to supported versions of Drupal core and Drush.
Issue fork views_data_export-3553478
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
steven jones commentedUrgh. Drush.
Comment #3
steven jones commentedComment #4
steven jones commentedLet's do what Search API did I reckon.
Comment #7
steven jones commentedDone. Thanks @kreynen for the issue and the clear path to resolution.