utooland / utooland/utoo

[Utoopack] Alias ImportMap 在 umi 中不生效

Open
#2,191 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

S-Bug-confirmed
Dominant language
Rust
Stars
2.5k
Forks
128
Avg merge
21h 39m
Merged PRs (30d)
32

Description

What happened?

按照 umi 给 bundler 设置的 alias 配置:

Image

透传了 react 的 alias path(这里 node_modules 指定的 react 版本是 v17),在 umi 项目中输出 react 路径:

Image Image

如图所示这里找了个 v18 版本的 react....

Expected result

找到正确的 react 版本。

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the Utoopack ImportMap alias behavior in the described umi project using the shown alias configuration and React versions. Trace how the alias path is passed to the bundler, then verify that resolving React selects the configured v17 package rather than v18. No source file or test is named in the issue, so locating the relevant resolver entry point is part of the work.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.