Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing the wingsuit 2.x branch with Storybook 7 and Drupal 9: Drupal\Component\Plugin\Exception\PluginNotFoundException: The "pagination" plugin does not exist. #269

Open
finnlewis opened this issue May 22, 2023 · 1 comment

Comments

@finnlewis
Copy link

First, thank you @christianwiedemann for your help so far, very kind and productive. Please don't see this as chasing, I'm just documenting my progress here for others and for reference for my future self.

Describe the bug

I'm trying to test wingsuit 2.x with Drupal 9 (eg https://github.com/wingsuit-designsystem/wingsuit/releases/tag/v2.0.0-alpha.6)

To Reproduce

Do a fresh installation of Drupal 9 and grab required dependencies.

drush si -y
composer require 'drupal/wingsuit_companion:^2.1'
composer require 'drupal/ui_patterns:^1.5'
composer require 'drupal/components:^3.0@beta'
composer require 'drupal/ui_patterns_settings:^2.0'
drush en wingsuit_ui_patterns wingsuit_companion -y

Move to the themes directory and built the wingsuit theme / app / thing.

cd /web/themes/custom
nvm use 18
npx @wingsuit-designsystem/[email protected] init -k tailwind --branch release-2-0
cd wingsuit
yarn install
yarn dev:storybook

At this point I get storybook singing sweetly:

╭─────────────────────────────────────────────────────╮
│                                                     │
│   Storybook 7.0.12 for react-webpack5 started       │
│   626 ms for manager and 22 s for preview           │
│                                                     │
│    Local:            http://localhost:37711/        │
│    On your network:  http://192.168.1.196:37711/    │
│                                                     │
╰─────────────────────────────────────────────────────╯

Next I want to get the wingsuit Drupal theme humming.

yarn dev:drupal 

This builds out the themes/custom/wingsuit/dist/app-drupal directory with the Drupal assets.

Enabling the Drupal theme and setting default gives me the following error:

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "pagination" plugin does not exist. Valid plugin IDs for Drupal\ui_patterns\UiPatternsManager are: in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of /var/www/html/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php). 
@finnlewis
Copy link
Author

@christianwiedemann just tested the above again, this time with

npx @wingsuit-designsystem/[email protected] init -k tailwind --branch release-2-0

i am still getting the same error in Drupal
```Drupal\Component\Plugin\Exception\PluginNotFoundException: The "pagination" plugin does not exist. Valid plugin IDs for Drupal\ui_patterns\UiPatternsManager are: in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of /var/www/html/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).``

On the Wingsuit Companion settings in the Drupal admin UI, I have tried a few variations, in case it is something funky about the path. So I tried each of the following, clearing cache each time.

/../../dist/app-drupal/
/../../dist/app-drupal
../../dist/app-drupal/
../../dist/app-drupal

and

/themes/custom/wingsuit/dist/app-drupal/
/themes/custom/wingsuit/dist/app-drupal
themes/custom/wingsuit/dist/app-drupal/
themes/custom/wingsuit/dist/app-drupal

I still get the same error in Drupal logs above. Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant