Issue trying to implement the Swagger UI module in Drupal: ReferenceError: SwaggerUIBundle is not defined
I seem to have found a resolution to this issue.
In the installation notes for the SwaggerUI module, the instructions state to add this block of code to the composer.json
&quot;extra&quot;: {
  &quot;installer-paths&quot;: {
    ...
    &quot;web/libraries/{$name}&quot;: [&quot;swagger-api/swagger-ui&quot;, &quot;type:drupal-library&quot;],
    ...
  }
}

When running composer install, composer will place the external swagger-api in the /web/libraries/&lt;whatever&gt; directory.
In the openapi_ui_swagger.libraries.yml file located within the SwaggerUI module, it is pulling in the external swagger-api here:
swagger_ui:
  js:
    /libraries/swagger-ui/dist/swagger-ui-bundle.js: {}
    /libraries/swagger-ui/dist/swagger-ui-standalone-preset.js: {}
  css:
    theme:
      /libraries/swagger-ui/dist/swagger-ui.css: { minified: true }

swagger_ui_integration:
  js:
    js/swagger.js: {}
  dependencies:
    - core/jquery
    - core/drupal
    - openapi_ui_swagger/swagger_ui

The library paths need to be updated to match the directories created in the installation notes:
js:
    /web/libraries/swagger-ui/dist/swagger-ui-bundle.js: {}
    /web/libraries/swagger-ui/dist/swagger-ui-standalone-preset.js: {}
  css:
    theme:
      /web/libraries/swagger-ui/dist/swagger-ui.css: { minified: true }