Closed (fixed)
Project:
Patternkit
Version:
9.1.x-dev
Component:
Module Core
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
3 Jun 2022 at 20:35 UTC
Updated:
27 Jun 2022 at 20:49 UTC
Jump to comment: Most recent
When you run the Drush patternkit:libUpdate command, it ends with a fatal error:
TypeError: Argument 1 passed to Drupal\patternkit\Commands\PatternkitCommands::updateBlockComponentPluginPattern() must be an instance of Drupal\block\BlockInterface, instance of Drupal\layout_builder\SectionComponent given
modules/patternkit_example/lib/patternkit/src/atoms/example/src/example.twig).drush patternkit:libUpdate patternkit- Fixed a bug to avoid a TypeError in patternkit:libUpdate Drush command.
- Removed argument library_name from that command because it is not used.
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 #3
krisahil commentedComment #4
krisahil commentedComment #5
krisahil commentedMoving back to Needs work because we need to figure out how to run the library updater from a Drupal update hook.See https://www.drupal.org/project/patternkit/issues/3284744 for info about running the library updater from a Drupal update hook.
Comment #6
krisahil commentedComment #7
sluceroThe changes here look good to me, but if possible I'd like to hear from someone else running it to test as well.
This should be fine for a near-term fix to resolve the errors being thrown and get the command running again, but I would like to follow up this work with the changes proposed in #3284744 to make this functionality more accessible in more contexts.
Comment #10
mariohernandez commented