'expecting color, list received' error using SCSS via TYPO3

霸气de小男生 提交于 2021-02-11 12:22:03

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!