swagger-api / swagger-ui

Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
https://swagger.io
Apache License 2.0
25.96k stars 8.85k forks source link

postcss-simple-vars: <css input> Undefined variable $vocabulary #10045

Open RareSecond opened 4 days ago

RareSecond commented 4 days ago

Q&A (please complete the following information)

Content & configuration

import "swagger-ui-react/swagger-ui.css";

Simple importing this file into a Next.js (v14.1.4) causes a crash.

Syntax error: postcss-simple-vars: <css input> Undefined variable $vocabulary

  1 | .models .json-schema-2020-12:not(.json-schema-2020-12--embedded) > .json-schema-2020-12-head .json-schema-2020-12__title:first-of-type {
> 2 |   font-size: 16px;
    |  ^
  3 | }
  4 |