Getting the following error trying to run the sub-theme command:

 $ drush --include="web/themes/contrib/bootstrap_storybook" bootstrap_storybook:create "My Storybook"
 [warning] The following theme is missing from the file system: bootstrap_storybook bootstrap.inc:295
 0/2 [>---------------------------]   0% [error]  The origin directory specified "/src/kits/default" was not found. 
 [Collection]   
 [Collection]  Exit code 1 
 2/2 [============================] 100%

I thought if I specify the relative path from the project root, that might do it. But no:

 $ drush --include="web/themes/contrib/bootstrap_storybook" bootstrap_storybook:create "My Storybook" --kit="/app/web/themes/contrib/bootstrap_storybook/src/kits/default"
 [warning] The following theme is missing from the file system: bootstrap_storybook bootstrap.inc:295
 0/2 [>---------------------------]   0% [error]  The origin directory specified "/src/kits//app/web/themes/contrib/bootstrap_storybook/src/kits/default" was not found. 
 [Collection]   
 [Collection]  Exit code 1 
 2/2 [============================] 100%

Gave it one last try with a specified absolute path. Still no:

$ drush --include="web/themes/contrib/bootstrap_storybook" bootstrap_storybook:create "My Storybook" --kit="web/themes/contrib/bootstrap_storybook/src/kits/default"
 [warning] The following theme is missing from the file system: bootstrap_storybook bootstrap.inc:295
 0/2 [>---------------------------]   0% [error]  The origin directory specified "/src/kits/web/themes/contrib/bootstrap_storybook/src/kits/default" was not found. 
 [Collection]   
 [Collection]  Exit code 1 
 2/2 [============================] 100%

Comments

jcandan created an issue. See original summary.

doxigo’s picture

Try enabling the theme first to see if it helps? also could you manually check the path and see if it's correct? like is it web or docroot?

jcandan’s picture

Issue summary: View changes
jcandan’s picture

Yes, it is for sure web/. Okay, that did it. So, along with instructions to get Robo, like Radix, we need to enable the base theme before we can run the sub-theme command.

  1. Download and enable radix and components: composer require drupal/radix; drush en components radix -y
  2. Create a sub-theme: drush --include="themes/contrib/radix" radix:create SUBTHEME NAME
  3. Set default theme: drush en SUBTHEME_NAME -y; drush config-set system.theme default SUBTHEME_NAME -y
doxigo’s picture

is it necessary to set the default theme as well? or just enabling should be enough?

jcandan’s picture

Enabling the base theme is enough. Note that the default theme is the sub-theme in their instructions.

doxigo’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.