Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/wpf/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sass 我在编译SCS时收到一条错误消息,其中指出缺少}_Sass_Compiler Errors - Fatal编程技术网

Sass 我在编译SCS时收到一条错误消息,其中指出缺少}

Sass 我在编译SCS时收到一条错误消息,其中指出缺少},sass,compiler-errors,Sass,Compiler Errors,我试图编译一些非常简单的SCS,但我有一个错误消息,我无法解决它 Error: expected "}". ╷ 23 │ } │ ^ ╵ atomonestylesheet.scss 23:2 root stylesheet 上面是我收到的错误信息,下面是代码 h2 { font-family: 'Overpass', monospace; } 23:2刚刚结束} 我试过一些东西 在请求的位置添加} 添加}并删除另一个 寻找其他有同样问题的

我试图编译一些非常简单的SCS,但我有一个错误消息,我无法解决它

Error: expected "}".
   ╷
23 │ }
   │  ^
   ╵
  atomonestylesheet.scss 23:2  root stylesheet
上面是我收到的错误信息,下面是代码

h2 {
  font-family: 'Overpass', monospace;
}
23:2刚刚结束}

我试过一些东西

  • 在请求的位置添加}
  • 添加}并删除另一个
  • 寻找其他有同样问题的人
我能得到一些帮助吗

整个文件

:root {

  --1: #404E4D; /* Green Gray */
  --2: #8BE8CB; /* Mint */
  --3: #7EA2AA; /* Blue Gray */
  --4: #F3F2F0; /* Whitish */
  --5: #b5bd68; /* Olive*/
  --6: #53917E; /*Teal*/
  --7: #182825; /*VeryDark Turquiose*/
  --8: #a6d1c9; /* Cyan */
  --9: #e83c38; /* Orange-red */
}



h1 {
  color: var(--3);
  font-family: 'Overpass Mono', monospace;
}

h2 {
  font-family: 'Overpass', monospace;
}




{
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

.nav-list{
  height: 10vh;
  display: flex;
  width: 50%;
  justify-content: space-around;
  align-items: center;
  margin-left: auto;
}

您有一个块规则,但没有任何选择器抛出此错误。将其删除或添加适当的选择器以修复错误:

{
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

你能分享完整的文件内容吗?我会把它添加到主帖子中。