Skip to content

Using the router-plugin in rsbuild will cause the failure of static resource loading. #4466

Open
@Muromi-Rikka

Description

@Muromi-Rikka

Which project does this relate to?

Router

Describe the bug

As the title suggests, I have an image bg.jpg. When importing it through import, the page shows that the image is damaged, but in reality, there is no problem opening it directly in the photo and browser.

Your Example Website or App

https://github.com/Muromi-Rikka/rsbuild-tanstack-router

Steps to Reproduce the Bug or Issue

When running this project, there is an example of image loading.

Expected behavior

Static resources can be loaded normally.

Screenshots or Videos

No response

Platform

  • OS: Windows
  • Browser: Chrome
  • Version: latest

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions