Skip to content

[Bug] Links in overlay not working #19

@pobytechtaka

Description

@pobytechtaka

issue

Recently, I added the plugin in the PR work and am receiving type error warnings as an overlay.

However, there is one problem here. The editor should be opened with the entire relative path hovered, but since it is not, the file in question is not opened in the editor.

From a quick look at the code, it seems to be due to the influence of the https://github.com/rspack-contrib/ts-checker-rspack-plugin plugin that was added in the PR work, rather than the problem of this plugin or the overlay.

Can you give me some advice on this?

reproduction

just create new rsbuild with yarn create rsbuild and add this plugin in rsbuild.config.ts

import { defineConfig } from '@rsbuild/core';
import { pluginReact } from '@rsbuild/plugin-react';
import { pluginTypeCheck } from "@rsbuild/plugin-type-check";

export default defineConfig({
  plugins: [pluginReact(),pluginTypeCheck()],
  dev: {
    client: {
      overlay: true,
    },
  }
});

and make any type error. and then go browser click the overlay link.
the link is not working.

overlay link is -> /src/App.tsx but correct link is ./src/App.tsx

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