BootstrapTheme icon indicating copy to clipboard operation
BootstrapTheme copied to clipboard

Sylius 1.11.7 compatibility - as a composer dependency (with child theme)

Open H4Mm3r opened this issue 3 years ago • 2 comments

Hello,

On a fresh Sulius 1.11.7 install :

$ composer create-project sylius/sylius-standard dev $ cd dev $ composer update sylius/sylius --with-all-dependencies [some settings in config/services.yaml and .env.local] $ php bin/console sylius:install $ yarn install $ yarn build

I'm following the doc https://docs.sylius.com/en/latest/book/themes/bootstrap-theme.html mentioned on this repo's main page and after the composer require sylius/bootstrap-theme and the edit of config/packages/_sylius.yaml, a refresh gives an error :

An exception has been thrown during the rendering of a template ("Asset manifest file "/opt/sylius/dev/public/build/manifest.json" does not exist. Did you forget to build the assets with npm or yarn?").

Tried yarn build, next steps of the doc, nothing helped.

Thanks by advance.

H4Mm3r avatar Aug 12 '22 18:08 H4Mm3r

Seems that replacing the whole content of config/packages/webpack_encore.yaml with

webpack_encore: output_path: '%kernel.project_dir%/public/build' builds: bootstrapTheme: '%kernel.project_dir%/public/bootstrap-theme'

is fixing the behaviour, but compilation fails :

Error: Node Sass version 7.0.1 is incompatible with ^4.0.0.

H4Mm3r avatar Aug 13 '22 09:08 H4Mm3r

Fixed using sass instead of node-sass :

yarn remove node-sass yarn add sass

Is it a solution ?

H4Mm3r avatar Aug 13 '22 10:08 H4Mm3r