Skip to content

RESULT_CODE_HUNG when updating translation files #42

@aramissennyeydd

Description

@aramissennyeydd

I'm working on migrating a fairly large project to rspack and one blocker they had with webpack was enabling Fast Refresh. There is a known issue that Rspack seems to have solved around circular dependencies, pmmmwh/react-refresh-webpack-plugin#190.

However, when I enable this plugin for our repo and make changes to any of our translation files, we have a few pages that hang and are completely unresponsive. The basic structure of our app is

pages/
  - page1.tsx
  - strings.ts
i18n/
  - en.json

where strings.ts is something like

export const title = i18n.t('<key-of-en.json>');

I'd expect the page to either do a full refresh or not hang. There are no useful logs in either the browser or rspack. An example response from the hot reload chunk is

{
c: ["main"],
r: [],
m: []
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions