Skip to content

[Utoopack] namespace export and circular dependencies cause runtime error #2582

Closed

Description

@fireairforce

What happened?

Reproduce demo: https://github.com/fireairforce/utoopack-circular-dependencies-repo/tree/main

Only one line code: https://github.com/fireairforce/utoopack-circular-dependencies-repo/blob/main/src/pages/index.tsx

The dependencies version: https://github.com/fireairforce/utoopack-circular-dependencies-repo/blob/main/package.json#L12

execute:

git clone https://github.com/fireairforce/utoopack-circular-dependencies-repo.git
pnpm i
pnpm run dev

You will get error as follows:

Image

Expected result

Now bundler webpack and mako both works fine.

Activity

  1. added theissue type on Feb 10, 2026
  2. magic-akari commented on Feb 23, 2026

    @magic-akari
    Contributor

    Unable to reproduce on the latest branch. This seems to be a fixed issue.
    git bisect identifies 055a90a (from PR #2600) as the first commit where the fix was applied.

  3. fireairforce commented on Feb 24, 2026

    @fireairforce
    MemberAuthor

    Unable to reproduce on the latest branch. This seems to be a fixed issue. git bisect identifies 055a90a (from PR #2600) as the first commit where the fix was applied.

    Strangely, I tested it with the latest binary package and it seems the problem is indeed fixed.I'll test this case with more projects later. It seems that this commit's fix is ​​not closely related to resolving this issue.

  4. fireairforce commented on Feb 24, 2026

    @fireairforce
    MemberAuthor

    Unable to reproduce on the latest branch. This seems to be a fixed issue. git bisect identifies 055a90a (from PR #2600) as the first commit where the fix was applied.

    it seems this change not a fix, it will cause the page not load the chunk correctly to make the issue not reproduce:

    Image
  5. fireairforce commented on Feb 27, 2026

    @fireairforce
    MemberAuthor

    Unable to reproduce on the latest branch. This seems to be a fixed issue. git bisect identifies 055a90a (from PR #2600) as the first commit where the fix was applied.

    now it can reproduce on the latest branch~

  6. changed the title [-][Utoopack] namespace 导出和循环依赖导致运行时产物错误[/-] [+][Utoopack] namespace export and circular dependencies cause runtime error[/+] on Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-Bug-confirmedStatus: report has been confirmed as a valid bug

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions