After the node sass version upgrade (^13.0.0), a build error is prompted:
ERROR Failed to compile with 1 errors 7:58:23 AM
error in ./vendor/sylius/bootstrap-theme/assets/js/index.js 7:58:23 AM
Module not found: Error: Package path ./dist/bootstrap-native is not exported from package /var/www/html/node_modules/bootstrap.native (see exports field in /var/www/html/node_modules/bootstrap.native/package.json)
Following the doc at https://docs.sylius.com/en/latest/book/themes/bootstrap-theme.html I stumble on multiple errors while doing it:
1. Node-sass version
In the doc, we are forcing the version to ^7.0.0
The README of this repo uses
sass-loader@^13.0.0
but boostrap 4 and not 5.2. Bootstrap native
After the node sass version upgrade (^13.0.0), a build error is prompted:
Looking in the code, this is the problem: https://github.com/SyliusCrafts/BootstrapTheme/blob/3199a8f38025bec45a689349b0102479c46a3cee/assets/js/index.js#L14
Switching to this seems to work:
3. Bootstrap components
The dropdown of the cart does not works.
I need to manually import bootstrap in the
entry.js
file to make it works.Versions
Composer
Yarn