Type error when installing the storybook module

Created on 19 November 2024, 29 days ago

Problem/Motivation

The module throws a type error in a construct method when installing and enabling on a site that uses the storybook module. The error message is the following:

TypeError: Drupal\pwa\Form\ManifestConfigurationForm::__construct(): Argument #8 ($fileUrlGenerator) must be of type Drupal\Core\File\FileUrlGenerator, Drupal\storybook\FileUrlGenerator given, called in /var/www/html/web/modules/contrib/pwa/src/Form/ManifestConfigurationForm.php on line 158 in Drupal\pwa\Form\ManifestConfigurationForm->__construct() (line 114 of modules/contrib/pwa/src/Form/ManifestConfigurationForm.php).

Steps to reproduce

Install and enable the storybook module with the pwa module enabled and navigate to the settings page for PWA (/admin/config/services/pwa/manifest).

Proposed resolution

Use the FileUrlGeneratorInterface type instead of FileUrlGenerator type for the method argument that throws the error.
(See 🐛 Type error when installing the storybook module Fixed )

🐛 Bug report
Status

Active

Version

2.1

Component

Code

Created by

🇳🇱Netherlands joshahubbers

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024