Skip to content

Build fails with "Cannot read property 'opId' of undefined" #6210

@wickedest

Description

@wickedest

Q&A (please complete the following information)

  • OS: ubuntu
  • Browser: chrome
  • Version: 83.0.4103.97
  • Method of installation: npm
  • Swagger-UI version: 3.26.2
  • Swagger/OpenAPI version: Swagger 2.0, OpenAPI 3.0

Content & configuration

Describe the bug you're encountering

Our UI builds suddenly stopped working today, failing at the start of karma tests with the error:

HeadlessChrome 83.0.4103 (Linux 0.0.0) ERROR
  Uncaught TypeError: Cannot read property 'opId' of undefined
  at webpack:///home/jamie/piper/api-builder/node_modules/swagger-ui/dist/swagger-ui.js:8:0 <- test/loadtests.js:269997

I noticed that swagger-ui hadn't changed in a few days, however, swagger-client changed only 7 hours ago. I also noticed this change: e3b3bf0#diff-c85b6c9e099af384a182e638a811c734R4 from July 6th.

Maybe it is possible that the opId change to swagger-client was a breaking change?

To reproduce...

Expected behavior

Screenshots

Additional context or thoughts

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions