[BUG]: 当 @dcloudio/uni-components 作为某个 lib 的依赖并且处于 symlinks 时,由于 symlinks 问题导致找不到包而报错!
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 65/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- javascript, node.js
- Domain
- build-system, tooling
Research direction
Read packages/uni-cli-shared/src/resolve.ts at the linked lines, then trace how resolveWithSymlinks gets its basedir when @dcloudio/uni-components is a symlinked dependency. The issue proposes resolving @dcloudio/uni-app first and using its path as the basedir; check nearby tests for this resolver and add or update coverage for the symlink case. Done means the package resolves successfully in that setup.
Written by the indexing model from the issue text.
Description
解决方案:
@dcloudio/uni-app 始终伴随 @dcloudio/uni-components,可以先 require.resolve @dcloudio/uni-app 拿到 path,将其作为 basedir 传入 resolveWithSymlinks
- Dominant language
- JavaScript
- Stars
- 41.7k
- Forks
- 3.7k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 5
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from dcloudio/uni-app
-
官方文档链接都放错了。。Open
Difficulty 1/5 Under an hour Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
Maintainers usually reply within 1 day
-
uniapp x 蓝牙ApiOpenenhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
dcloudio/uni-app#6097 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 43/100
Maintainers usually reply within 1 day
All issues in dcloudio/uni-app
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
mailcow/mailcow-dockerized#7677 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
gcivil-nyu-org/team5-mon-fall26#145 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
needs discussion
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openfga/openfga.dev#1436 · 1 comment ·
Maintainers usually reply within 2 days