Running "composer update" leads to errors with coder
What worked is the following commands

rm composer.lock
rm vendor -rf
composer clear-cache
composer require --dev drupal/coder
composer update


with last command perhaps not needed as the previous composer command does an implicit update