Skip to content

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

Open
@MartinJohannesNilsen

Description

@MartinJohannesNilsen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions