Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New swagger/ui/index.js is not included in the virtual file system as an embedded resource and it's not parsed #21538

Closed
1 task done
dimitrov9 opened this issue Dec 3, 2024 · 1 comment
Assignees
Labels
Milestone

Comments

@dimitrov9
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Description

This is a continuation of #21444. It doesn't solve the #21524.

  • The new framework/src/Volo.Abp.Swashbuckle/wwwroot/swagger/ui/index.js in framework/src/Volo.Abp.Swashbuckle/Volo.Abp.Swashbuckle.csproj is not included in the virtual file system as an embedded resource
  • The file is also not injected in framework/src/Volo.Abp.Swashbuckle/Microsoft/AspNetCore/Builder/AbpSwaggerUIBuilderExtensions.cs
  • I get the following errors when I try to manually include it:
Uncaught SyntaxError: Unexpected token '%', "%(ConfigObject)" is not valid JSON
    at JSON.parse (<anonymous>)
    at window.onload (index.js:33:29)

Reproduction Steps

No response

Expected behavior

No response

Actual behavior

No response

Regression?

No response

Known Workarounds

No response

Version

9.0.1

User Interface

MVC

Database Provider

EF Core (Default)

Tiered or separate authentication server

Tiered

Operation System

Windows (Default)

Other information

No response

@dimitrov9 dimitrov9 added the bug label Dec 3, 2024
@realLiangshiwei realLiangshiwei mentioned this issue Dec 4, 2024
2 tasks
@realLiangshiwei realLiangshiwei self-assigned this Dec 4, 2024
@realLiangshiwei realLiangshiwei added this to the 9.0-patch milestone Dec 4, 2024
@realLiangshiwei
Copy link
Member

You can try replacing UseAbpSwaggerUI with UseSwaggerUI as a temporary solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants