Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS source map is broken #9946

Open
kaiyoma opened this issue May 18, 2024 · 1 comment
Open

CSS source map is broken #9946

kaiyoma opened this issue May 18, 2024 · 1 comment

Comments

@kaiyoma
Copy link

kaiyoma commented May 18, 2024

Q&A (please complete the following information)

  • OS: Windows 11
  • Browser: Chrome
  • Version: 125
  • Method of installation: npm
  • Swagger-UI version: 5.17.10

Describe the bug you're encountering

The postcss project recently added some extra CSS source map checks (to look for broken source maps) and the source map that is distributed with swagger-ui-react is evidently broken. When loading the stylesheet with the latest postcss, this warning appears:

  VITE v4.5.0  ready in 2298 ms

  ➜  Local:   http://localhost:3001/
  ➜  Network: use --host to expose
  ➜  press h to show help
original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.

To reproduce...

Steps to reproduce the behavior:

  1. Have a webapp built with Vite and postcss (we use LESS) and swagger-ui-react
  2. Import the stylesheet: @import 'swagger-ui-react/swagger-ui.css';
  3. Start Vite

Expected behavior

No warnings.

Additional information

For more information and a long discussion about this issue, see postcss/postcss#1914

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants