Я давно пытаюсь решить эту проблему.
Ошибка:
отформатировано: «Ошибка: аргумент $ map of map-get ($ map, $ key) должен быть картой
в строке 68 sass / node_modules / saber-spark / scss / mixins / _font.scss, в
функция map-get из строки 68
sass / node_modules / saber-spark / scss / mixins / _font.scss, в миксине
queueFont
сообщение: «аргумент $ map of map-get ($ map, $ key) должен быть картой»
Я понял, что проблема вызвана этими двумя файлами, в которых мой шрифт не становится строковым.
Что не так с картой здесь?
Шрифты:
$fonts: (
'Source Sans Pro': (
100,
300,
400,
500,
700,
),
'Oswald': (
100,
300,
400,
500,
700,
),
'Roboto': (
100,
300,
400,
500,
700,
),
'Roboto Mono': 400,
) !default;
Список шрифтов:
$font-list: (
'Source Sans Pro': (
100: (
'normal': (
'local': (
'Source Sans Pro Light',
),
'embedded-opentype': '/source-sans-pro/source-sans-pro-v11-latin-300.eot?#iefix',
'woff': '/source-sans-pro/source-sans-pro-v11-latin-300.woff',
'woff2': '/source-sans-pro/source-sans-pro-v11-latin-300.woff2',
'svg': '/source-sans-pro/source-sans-pro-v11-latin-300.svg#SourceSansPro',
'truetype': '/source-sans-pro/source-sans-pro-v11-latin-300.ttf',
),
'italic': (
'local': (
'Source Sans Pro Light',
),
'embedded-opentype': '/source-sans-pro/source-sans-pro-v11-latin-300.eot?#iefix',
'woff': '/source-sans-pro/source-sans-pro-v11-latin-300.woff',
'woff2': '/source-sans-pro/source-sans-pro-v11-latin-300.woff2',
'svg': '/source-sans-pro/source-sans-pro-v11-latin-300.svg#SourceSansPro',
'truetype': '/source-sans-pro/source-sans-pro-v11-latin-300.ttf',
),
),
300: (
'normal': (
'local': (
'Source Sans Pro Light',
),
'embedded-opentype': '/source-sans-pro/source-sans-pro-v11-latin-300.eot?#iefix',
'woff': '/source-sans-pro/source-sans-pro-v11-latin-300.woff',
'woff2': '/source-sans-pro/source-sans-pro-v11-latin-300.woff2',
'svg': '/source-sans-pro/source-sans-pro-v11-latin-300.svg#SourceSansPro',
'truetype': '/source-sans-pro/source-sans-pro-v11-latin-300.ttf',
),
'italic': (
'local': (
'Source Sans Pro Light',
),
'embedded-opentype': '/source-sans-pro/source-sans-pro-v11-latin-300.eot?#iefix',
'woff': '/source-sans-pro/source-sans-pro-v11-latin-300.woff',
'woff2': '/source-sans-pro/source-sans-pro-v11-latin-300.woff2',
'svg': '/source-sans-pro/source-sans-pro-v11-latin-300.svg#SourceSansPro',
'truetype': '/source-sans-pro/source-sans-pro-v11-latin-300.ttf',
),
),
400: (
'normal': (
'local': (
'Source Sans Pro',
),
'embedded-opentype': '/source-sans-pro/source-sans-pro-v11-latin-regular.eot?#iefix',
'woff': '/source-sans-pro/source-sans-pro-v11-latin-regular.woff',
'woff2': '/source-sans-pro/source-sans-pro-v11-latin-regular.woff2',
'svg': '/source-sans-pro/source-sans-pro-v11-latin-regular.svg#SourceSansPro',
'truetype': '/source-sans-pro/source-sans-pro-v11-latin-regular.ttf',
),
'italic': (
'local': (
'Source Sans Pro',
),
'embedded-opentype': '/source-sans-pro/source-sans-pro-v11-latin-regular.eot?#iefix',
'woff': '/source-sans-pro/source-sans-pro-v11-latin-regular.woff',
'woff2': '/source-sans-pro/source-sans-pro-v11-latin-regular.woff2',
'svg': '/source-sans-pro/source-sans-pro-v11-latin-regular.svg#SourceSansPro',
'truetype': '/source-sans-pro/source-sans-pro-v11-latin-regular.ttf',
),
),
500: (
'normal': (
'local': (
'Source Sans Pro SemiBold',
),
'embedded-opentype': '/source-sans-pro/source-sans-pro-v11-latin-600.eot?#iefix',
'woff': '/source-sans-pro/source-sans-pro-v11-latin-600.woff',
'woff2': '/source-sans-pro/source-sans-pro-v11-latin-600.woff2',
'svg': '/source-sans-pro/source-sans-pro-v11-latin-600.svg#SourceSansPro',
'truetype': '/source-sans-pro/source-sans-pro-v11-latin-600.ttf',
),
'italic': (
'local': (
'Source Sans Pro SemiBold',
),
'embedded-opentype': '/source-sans-pro/source-sans-pro-v11-latin-600.eot?#iefix',
'woff': '/source-sans-pro/source-sans-pro-v11-latin-600.woff',
'woff2': '/source-sans-pro/source-sans-pro-v11-latin-600.woff2',
'svg': '/source-sans-pro/source-sans-pro-v11-latin-600.svg#SourceSansPro',
'truetype': '/source-sans-pro/source-sans-pro-v11-latin-600.ttf',
),
),
700: (
'normal': (
'local': (
'Source Sans Pro',
),
'embedded-opentype': '/source-sans-pro/source-sans-pro-v11-latin-700.eot?#iefix',
'woff': '/source-sans-pro/source-sans-pro-v11-latin-700.woff',
'woff2': '/source-sans-pro/source-sans-pro-v11-latin-700.woff2',
'svg': '/source-sans-pro/source-sans-pro-v11-latin-700.svg#SourceSansPro',
'truetype': '/source-sans-pro/source-sans-pro-v11-latin-700.ttf',
),
'italic': (
'local': (
'Source Sans Pro',
),
'embedded-opentype': '/source-sans-pro/source-sans-pro-v11-latin-700.eot?#iefix',
'woff': '/source-sans-pro/source-sans-pro-v11-latin-700.woff',
'woff2': '/source-sans-pro/source-sans-pro-v11-latin-700.woff2',
'svg': '/source-sans-pro/source-sans-pro-v11-latin-700.svg#SourceSansPro',
'truetype': '/source-sans-pro/source-sans-pro-v11-latin-700.ttf',
),
),
900: (
'normal': (
'local': (
'Source Sans Pro',
),
'embedded-opentype': '/source-sans-pro/source-sans-pro-v11-latin-700.eot?#iefix',
'woff': '/source-sans-pro/source-sans-pro-v11-latin-700.woff',
'woff2': '/source-sans-pro/source-sans-pro-v11-latin-700.woff2',
'svg': '/source-sans-pro/source-sans-pro-v11-latin-700.svg#SourceSansPro',
'truetype': '/source-sans-pro/source-sans-pro-v11-latin-700.ttf',
),
'italic': (
'local': (
'Source Sans Pro',
),
'embedded-opentype': '/source-sans-pro/source-sans-pro-v11-latin-700.eot?#iefix',
'woff': '/source-sans-pro/source-sans-pro-v11-latin-700.woff',
'woff2': '/source-sans-pro/source-sans-pro-v11-latin-700.woff2',
'svg': '/source-sans-pro/source-sans-pro-v11-latin-700.svg#SourceSansPro',
'truetype': '/source-sans-pro/source-sans-pro-v11-latin-700.ttf',
),
),
)
)
) !default;