问题
Problem
I moved a running TYPO3 to my local Xampp on Windows 10, run an update via composer and got this error message calling the updated site running on my Xampp and back on the original server (Debian)
expecting color, list received
The script throwing this message is
C:\xampp\htdocs\typo3\vendor\scssphp\scssphp\src\Compiler.php
Different versions of the script
Since the script triggering this message seems to be _variables.scss from the SCSS framework used by the TYPO3 Bootstrap package I tried different versions of it and got these messages
_variables.scss from the Bootstrap package via composer update (original message)
(1/1) ScssPhp\ScssPhp\Exception\CompilerException
expecting color, list received: typo3conf/ext/bootstrap_package/Resources/Public/Scss/Theme/_variables.scss on line 143, at column 1 Call Stack: #0 import typo3conf/ext/bootstrap_package/Resources/Public/Scss/Theme/_variables.scss typo3conf/ext/bootstrap_package/Resources/Public/Scss/Theme/theme.scss on line 4 #1 import typo3conf/ext/bootstrap_package/Resources/Public/Scss/Theme/theme.scss (unknown file) on line 1
_variables.scss from https://github.com/twbs/bootstrap-sass/blob/master/assets/stylesheets/bootstrap/_variables.scss
(1/1) ScssPhp\ScssPhp\Exception\CompilerException
expecting color, list received: typo3conf/ext/bootstrap_package/Resources/Public/Scss/Theme/_variables.scss on line 692, at column 1 Call Stack: #0 import typo3conf/ext/bootstrap_package/Resources/Public/Scss/Theme/_variables.scss typo3conf/ext/bootstrap_package/Resources/Public/Scss/Theme/theme.scss on line 4 #1 import typo3conf/ext/bootstrap_package/Resources/Public/Scss/Theme/theme.scss (unknown file) on line 1
_variables.scss von getbootstrap.com
(1/1) ScssPhp\ScssPhp\Exception\CompilerException
Undefined mixin _assert-ascending: typo3conf/ext/bootstrap_package/Resources/Public/Scss/Theme/_variables.scss on line 175, at column 1 Call Stack: #0 import typo3conf/ext/bootstrap_package/Resources/Public/Scss/Theme/_variables.scss typo3conf/ext/bootstrap_package/Resources/Public/Scss/Theme/theme.scss on line 4 #1 import typo3conf/ext/bootstrap_package/Resources/Public/Scss/Theme/theme.scss (unknown file) on line 1
Other steps
I (re-)ran the updates of the TYPO3 in general, the Bootstrap extension and SCSS framework.
I fixed all issues shown in the backend of TYPO3 under ADMIN TOOLS > Environment > Environment Status
I googled the error message's exact phrase "expecting color, list received" and got exactly 1 result
The most informative answer I got was SCSS compiling error: expecting color, which gives the answer that this error message is the result of a bug in the application using the SCSS framework.
Is this an issue I can fix and how or do I have to contact the Bootstrap, maybe TYPO3 developers?
来源:https://stackoverflow.com/questions/63231292/expecting-color-list-received-error-using-scss-via-typo3