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

I have an error message while compiling SCSS where it states a } is missing

我正在尝试编译一些非常简单的 SCSS,但我收到一条错误消息,我无法编译。

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;
}