benjaminkott / bootstrap_package

Bootstrap Package delivers a full configured theme for TYPO3, based on the Bootstrap CSS Framework.
https://www.bootstrap-package.com/
MIT License
336 stars 200 forks source link

Bootstrap_package 12.0.1 not working with theme made using Sitepackage-Builder version10.4 #1072

Open Tonyt8 opened 2 years ago

Tonyt8 commented 2 years ago

Hi,

Typo3 10.4.20 My custom theme templates are made using Typo3 sitepackage-builder version 10.4. Thanks for providing the sitepackage-builder, it's another great tool. I use the following Bootstrap package static templates: Full Package Bootstrap 4.x (SCSS) Content Elements

After updating to the bootstrap_package to 12.0.1 from 11.0.3 my custom theme templates do not work. Reading the error message I thought was it because the theme.scss is now in a different directory. I think I solved the theme not being found, but then I only get an error code number which do not understand.

I have tried various things and the example from the question (Recommended way to use typoscript settings from BS4 instead of default BS5)

In short I cannot find the solution.

What do I need to change in my custom theme extension for it to work with bootstrap_package 12.0.1?

An error message example: Core: Exception handler (WEB): Uncaught TYPO3 Exception: ../../../../../bootstrap_package/Resources/Public/Scss/bootstrap4/theme file not found for @import: typo3conf/ext/my_bootstrap_pakag_ten/Resources/Public/Scss/bootstrap4/theme.scss on line 9, at column 1 Call Stack: #0 import typo3conf/ext/my_bootstrap_pakag_ten/Resources/Public/Scss/bootstrap4/theme.scss (unknown file) on line 1 | ScssPhp\ScssPhp\Exception\CompilerException thrown in file /data/www/build10420-5/html/typo3conf/ext/bootstrap_package/Contrib/scssphp/src/Compiler.php in line 5602.

Thanks.

Regards, Tony

gilbertsoft commented 2 years ago

Try to use the core syntax for the import instead: @import "EXT:bootstrap_package/Resources/Public/Scss/bootstrap4/theme";

See also https://github.com/benjaminkott/bootstrap_package/blob/master/Tests/Packages/demo_package/Resources/Private/Scss/CoreSyntax/theme.scss