Is it possible to theme Vartheme BS5 Starterkit and use Storybook in the same time?

Created on 7 February 2025, about 2 months ago

I have no problem to compile my scss theme with yarn theme:watch if I do not install storybook
I have no problem to use storybook but I cannot use components:build theme:init and all other yarn scripts used for theming

My question is : is it possible to use Storybook and theming with yarn in the same project?
We have a yarn with the scripts 'theme:init' 'theme:build' 'components:build' etc at the docroot/themes/custom/myTheme level and another yarn with the scripts 'storybook:build' 'storybook' etc at the project level.
For example I cannot run yarn components:build at the project level.
If not -> Usage Error: Couldn't find a script named "components:build".
And if I run it in docroot/themes/custom/myTheme, I have the error ->
Usage Error: The nearest package directory (/html/myProject/docroot/themes/custom/myTheme) doesn't seem to be part of the project declared in /html/myProject

How can I do to have a unique yarn at the myProject level which could run the docroot/themes/custom/myTheme scripts?

Thank your for your help
JPB

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇫🇷France jeanpaulbouvet

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

Comments & Activities

Production build 0.71.5 2024