0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

SASS記法のマップ変数でエラーが出る

Posted at

SassのSASS記法だとマップ変数のところでエラーが出る。
検索してもほとんど出てこなかったのでここにメモ書きしておく

@use "sass:map"

// 以下の書き方だとOK
$breakpoint-up: ("sm": "only screen and (min-width: 400px)","md": "print, screen and (min-width: 768px)","lg": "print, screen and (min-width: 980px)","xl": "print, screen and (min-width: 1400px)",) !default 
// 以下の書き方だとエラーが出る
$breakpoint-up: (
  "sm": "only screen and (min-width: 400px)",
  "md": "print, screen and (min-width: 768px)",
  "lg": "print, screen and (min-width: 980px)",
  "xl": "print, screen and (min-width: 1400px)",
) !default 

SASS記法の場合、map変数は一行で書く必要がある
うっかり忘れるけど@use "sass:map"も必要

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?