react-component / react-component/util

Uncaught TypeError: _interopRequireDefault is not a function at ../../../node_modules/rc-util/lib/hooks/useMergedState.js

Open
#369 0 comments 0 reactions 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

After running 'npm install @babel/plugin-proposal-class-properties --save-dev' then running npm start I got the following error

Uncaught TypeError: _interopRequireDefault is not a function
at ../../../node_modules/rc-util/lib/hooks/useMergedState.js (vendor.js:280159:23)
at webpack_require (bootstrap:79:1)
at ../../../node_modules/antd/lib/typography/Base/index.js (vendor.js:183406:47)
at webpack_require (bootstrap:79:1)
at ../../../node_modules/antd/lib/typography/Paragraph.js (vendor.js:184058:36)
at webpack_require (bootstrap:79:1)
at ./app/components/ShareLink/index.tsx (main.js:19950:87)
at webpack_require (bootstrap:79:1)
at ./app/components/games/GameCard.tsx (main.js:22478:68)
at webpack_require (bootstrap:79:1)

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 report by running npm install @babel/plugin-proposal-class-properties --save-dev followed by npm start. Start with node_modules/rc-util/lib/hooks/useMergedState.js and the stack entries in app/components/ShareLink/index.tsx and app/components/games/GameCard.tsx. Done means the application starts without the _interopRequireDefault TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
babel, javascript, react, typescript, webpack
Domain
build-system, frontend, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.