react-component / react-component/picker

TypeError: Cannot read properties of null (reading 'deoptimizeArgumentsOnInteractionAtPath') when build with vite

Open
#605 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
304
Forks
345
Avg merge
2d 7h
Merged PRs (30d)
7

Description

I use in my project:

"antd": "^5.2.3",
"vite": "^4.1.4",

antd uses "rc-picker": "~3.1.1", under the hood. Current installed version of rc-picker is 3.1.5.
image

vite uses "rollup": "^3.10.0" under the hood. Current installed version of rollup is 3.19.1.
image

I use @vitejs/plugin-react (latest 3.1.0 version), except that the build config is default.

When I run vite build I get TypeError: Cannot read properties of null (reading 'deoptimizeArgumentsOnInteractionAtPath').

I added some console.log into deoptimizeArgumentsOnInteractionAtPath to detect the failing module
image
and got: node_modules/antd/node_modules/rc-picker/es/generate/dayjs.js.
image

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

Reproduce the failure with vite build using the reported antd, rc-picker, Vite, Rollup, and plugin-react versions. Inspect node_modules/antd/node_modules/rc-picker/es/generate/dayjs.js and the deoptimizeArgumentsOnInteractionAtPath failure; done means the build completes without this TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, rollup, typescript, vite
Domain
build-system, frontend, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.