Commit 565245db authored by John Herreño's avatar John Herreño Committed by Mateu Aguiló Bosch
Browse files

Issue #3299162 by jedihe, e0ipso: Missing step in docs: install cl_components_example

parent cc557be8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -150,7 +150,7 @@ Start the Storybook's development server:
yarn storybook
```

Storybook will start and you will see a black and red screen with an error. This is because you need to set the Components config in Drupal. You need to visit `/admin/config/user-interface/cl-components` in your Drupal site. Add `modules/contrib/cl_components/cl_components_examples` in the _Paths_ textarea and save. This will make Drupal aware of the example components in _CL Components_ module.
Storybook will start and you will see a black and red screen with an error. This is because you need to set the Components config in Drupal. You need to visit `/admin/config/user-interface/cl-components` in your Drupal site. Add `modules/contrib/cl_components/cl_components_examples` in the _Paths_ textarea and save; then, load `/admin/modules` and install _CL Components Examples_ module. This will make Drupal aware of the example components in _CL Components_ module.

You'll refresh and you will see another error. This is a 403 because you need to allow the CL Server render endpoint for the anonymous user. So you need to go to the Drupal permissions page and grant permission to the anonymous user to access the component rendering endpoint. Note that this permission will not be exported into configuration because you excluded `cl_server` above in `settings.local.php`.