为什么只要使用任何组件都会出现下面这种报错呢?
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
- 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.
More from uiwjs/react-amap
-
文档:鼠标绘制工具点击没反应Open
Difficulty 1/5 Under an hour Newbie friendliness 55/100
uiwjs/react-amap#396 · 1 comment ·
-
如何在地图上增加MarkerOpen
Difficulty 2/5 1-3 hours Newbie friendliness 20/100
uiwjs/react-amap#392 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
uiwjs/react-amap#388 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 20/100
uiwjs/react-amap#385 ·
-
多语言如何支持Open
Difficulty 5/5 Over a week Newbie friendliness 20/100
uiwjs/react-amap#381 ·
All issues in uiwjs/react-amap
Similar issues
-
bug confirmed perf
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
videojs/video.js#9400 · 1 comment ·
Maintainers usually reply within 1 day
-
good first issue hacktoberfest
Difficulty 2/5 Half a day Newbie friendliness 70/100
HelpCode-ai/anythingmcp#996 ·
Maintainers usually reply within 1 day
-
check:passed streams:add
Difficulty 1/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
beta technical-medium ui
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
walletbeat/walletbeat#1625 ·
Maintainers usually reply within 1 day
-
[Good First Issue]: Add unit tests for NetworkVersionInfoPossibly taken A pull request linked to this issue is open or already merged. OpenGood First Issue hacktoberfest
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
hiero-ledger/hiero-sdk-js#4489 ·
Maintainers usually reply within 1 day