react-component / react-component/util

Share experience: When rc-util 5.3.0 release,I compile failed

Open
#151 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
670
Forks
205
Avg merge
11d 17h
Merged PRs (30d)
4

Description

Problem Description

When your project contains both antd4 and old rc-component,there is compile error.
image

Keyword

Module not found: Error: Can't resolve 'rc-util/es/Dom/isVisible

Why Error

rc-util 5 and rc-util 4 are both used by antd4 and old rc-component

Solution

add "rc-util": "^5.3.1" to package.json

Contributor guide

No contributing guide indexed for this repository

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

Start with package.json and the reported Module not found error for rc-util/es/Dom/isVisible. Check the dependency versions used with antd4 and the old rc-component, then verify that compilation succeeds with rc-util 5.3.1.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
build-system
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.