Skip to content

Console log error on Swagger page in 2.3.3 #25680

Closed
@duckchip

Description

@duckchip

Preconditions

  1. Magento 2.3.3
  2. Swagger module installed

The following console error shows up when navigating to the swagger page on a blank Magento2.3.3: require.config is not a function

This is because requirejs-config block got removed from the layout file for the swagger index page.

An easy fix would be to also add the following line to the layout file, but I don't know whether that is the best solution.

<referenceBlock name="theme.active.editor" remove="true" />

This block is coming Ui module, and is defined in the default.xml file which results to be loaded on every page.

Steps to reproduce

  1. Go to /swagger endpoint on Magento 2.3.3

Expected result

  1. No console errors

Actual result

  1. Screen Shot 2019-11-21 at 10 44 03

Metadata

Metadata

Assignees

Labels

Component: SwaggerFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentProgress: PR CreatedIndicates that Pull Request has been created to fix issueReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions