Skip to content

Swagger UI does not render if sass version is above 1.80.6 #10423

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

Open
MartinJohannesNilsen opened this issue Apr 19, 2025 · 0 comments
Open

Comments

@MartinJohannesNilsen
Copy link

Q&A (please complete the following information)

  • OS: macOS
  • Browser: chrome, safari, zen
  • Method of installation: npm
  • Swagger-UI version: 5.21.0
  • Swagger/OpenAPI version: OpenAPI 3.0

Content & configuration

NB! I have tested this in a NextJS project, where I usenext-swagger-doc, specifically version 0.4.1. The same error appears in both NextJS version 14 and 15. I have not tested in other projects without this method of creation.

When the installed version of sass goes beyond 1.80.6, Swagger UI will not render due to a TypeError.

Safari:

TypeError: undefined is not an object (evaluating 'n.default.Map')

Zen Browser:

Uncaught TypeError: n.default is undefined
    NextJS 11
        default
        rebuildReducer
        buildSystem
        register
        rw
        f9
        a
        oq
        uh
        um
        uh

That is, everything works as expected with version 1.80.6 and below, but for all versions from 1.80.7 and beyond I am getting this error.

Describe the bug you're encountering

There seems to be an error which appears if sass version is above 1.80.6. I have tested the exact same setup multiple times, only changing sass version, with deletion of next build and node modules in between trials. For 1.80.6, it renders, while for 1.80.7 and up to latest I have not gotten it to work.

To reproduce...

Steps to reproduce the behavior:

  1. Setup a project with sass version 1.80.7
  2. Navigate to apidoc path and nothing renders due to an uncaught error
  3. To get it working again, downgrade sass to 1.80.6
  4. Navigate to apidoc again and everything should be rendered as expected

Expected behavior

To render regardless of sass version.

Screenshots

Image

Additional context or thoughts

MartinJohannesNilsen added a commit to MartinJohannesNilsen/BlogByMartinnilsen that referenced this issue Apr 19, 2025
…n. Sass cannot use above 1.80.6 due to apidoc not rendering (issue: swagger-api/swagger-ui#10423)
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

1 participant