Error when installing #13

Open
opened 2025-08-07 15:27:48 +01:00 by bg · 2 comments
Owner

Script cache:clear returned with error code 1
!!
!! In TwigComponentPass.php line 55:
!!
!! Could not generate a component name for class "Pcm\BadgeBundle\Twig\Compone
!! nt\Badge": no matching namespace found under the "twig_component.defaults"
!! to use as a root. Check the config or give your component an explicit name.
!!
!!
!!
Script @auto-scripts was called via post-update-cmd
error: Recipe composer failed on line 73 with exit code 1

Script cache:clear returned with error code 1 !! !! In TwigComponentPass.php line 55: !! !! Could not generate a component name for class "Pcm\BadgeBundle\Twig\Compone !! nt\Badge": no matching namespace found under the "twig_component.defaults" !! to use as a root. Check the config or give your component an explicit name. !! !! !! Script @auto-scripts was called via post-update-cmd error: Recipe `composer` failed on line 73 with exit code 1
bg added the Bug label 2025-08-07 15:27:48 +01:00
Author
Owner

Think this might be a symfony skeleton thing, it probably needs this config setting.

Think this might be a symfony skeleton thing, it probably needs this config setting.
Author
Owner
twig_component:
    anonymous_template_directory: 'components/'
    defaults:
        # Namespace & directory for components
        App\Twig\Components\: 'components/'
        # Tell PCM bundles to use their own options to generate twig components, or
        # something I don't know. Try removing this and check out the error message.
        Pcm\: ''

```yaml twig_component: anonymous_template_directory: 'components/' defaults: # Namespace & directory for components App\Twig\Components\: 'components/' # Tell PCM bundles to use their own options to generate twig components, or # something I don't know. Try removing this and check out the error message. Pcm\: '' ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: pcm-libraries/pcm-badge-bundle#13