react-component / react-component/util
Uncaught TypeError in ref.js:6:32
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 670
- Forks
- 205
- Avg merge
- 11d 17h
- Merged PRs (30d)
- 4
Description
My application:
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.30.1",
"antd": "^5.26.0",
throws error after build. I am using Vite v6.3.5.
Uncaught TypeError: Cannot read properties of undefined (reading 'version')
at ref.js:6:32
var ReactMajorVersion = Number(version.split('.')[0]);
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Start by reproducing the Vite build with the listed React 18.3.1, react-dom 18.3.1, react-router-dom 6.30.1, and antd 5.26.0 versions, then inspect ref.js at line 6 where version is read. Done means the built application no longer throws the TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react, vite
- Domain
- build-system, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100