Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

为什么只要使用任何组件都会出现下面这种报错呢?

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

Nobody has claimed this yet.

Assessment

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

Research direction

Start by reproducing the error when using a component and inspect the APILoader entry shown in the stack trace. Use the reported useState failure in bundle.js as the immediate debugging path; this issue is complete when component usage no longer produces the reported runtime error and the cause is verified.

Written by the indexing model from the issue text.

Description

Uncaught runtime errors:
×
ERROR
Cannot read properties of null (reading 'useState')
TypeError: Cannot read properties of null (reading 'useState')
at useState (http://localhost:3000/static/js/bundle.js:32228:25)
at APILoader (http://localhost:3000/static/js/bundle.js:456:76)
at renderWithHooks (http://localhost:3000/static/js/bundle.js:53535:22)
at mountIndeterminateComponent (http://localhost:3000/static/js/bundle.js:56819:17)
at beginWork (http://localhost:3000/static/js/bundle.js:58115:20)
at HTMLUnknownElement.callCallback (http://localhost:3000/static/js/bundle.js:43131:18)
at Object.invokeGuardedCallbackDev (http://localhost:3000/static/js/bundle.js:43175:20)
at invokeGuardedCallback (http://localhost:3000/static/js/bundle.js:43232:35)
at beginWork$1 (http://localhost:3000/static/js/bundle.js:63096:11)
at performUnitOfWork (http://localhost:3000/static/js/bundle.js:62344:16)
ERROR
Cannot read properties of null (reading 'useState')
TypeError: Cannot read properties of null (reading 'useState')
at useState (http://localhost:3000/static/js/bundle.js:32228:25)
at APILoader (http://localhost:3000/static/js/bundle.js:456:76)
at renderWithHooks (http://localhost:3000/static/js/bundle.js:53535:22)
at mountIndeterminateComponent (http://localhost:3000/static/js/bundle.js:56819:17)
at beginWork (http://localhost:3000/static/js/bundle.js:58115:20)
at HTMLUnknownElement.callCallback (http://localhost:3000/static/js/bundle.js:43131:18)
at Object.invokeGuardedCallbackDev (http://localhost:3000/static/js/bundle.js:43175:20)
at invokeGuardedCallback (http://localhost:3000/static/js/bundle.js:43232:35)
at beginWork$1 (http://localhost:3000/static/js/bundle.js:63096:11)
at performUnitOfWork (http://localhost:3000/static/js/bundle.js:62344:16)
ERROR
Cannot read properties of null (reading 'useState')
TypeError: Cannot read properties of null (reading 'useState')
at useState (http://localhost:3000/static/js/bundle.js:32228:25)
at APILoader (http://localhost:3000/static/js/bundle.js:456:76)
at renderWithHooks (http://localhost:3000/static/js/bundle.js:53535:22)
at mountIndeterminateComponent (http://localhost:3000/static/js/bundle.js:56819:17)
at beginWork (http://localhost:3000/static/js/bundle.js:58115:20)
at beginWork$1 (http://localhost:3000/static/js/bundle.js:63074:18)
at performUnitOfWork (http://localhost:3000/static/js/bundle.js:62344:16)
at workLoopSync (http://localhost:3000/static/js/bundle.js:62267:9)
at renderRootSync (http://localhost:3000/static/js/bundle.js:62240:11)
at recoverFromConcurrentError (http://localhost:3000/static/js/bundle.js:61732:24)

Dominant language
TypeScript
Stars
505
Forks
75
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from uiwjs/react-amap

All issues in uiwjs/react-amap

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.