Description
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 use
next-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:
- Setup a project with sass version 1.80.7
- Navigate to apidoc path and nothing renders due to an uncaught error
- To get it working again, downgrade sass to 1.80.6
- Navigate to apidoc again and everything should be rendered as expected
Expected behavior
To render regardless of sass version.
Screenshots
