arc-progress icon indicating copy to clipboard operation
arc-progress copied to clipboard

React Error "Invalid Hook Call"

Open jarechiga11 opened this issue 5 years ago • 4 comments

Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: 1. You might have mismatching versions of React and the renderer (such as React DOM) 2. You might be breaking the Rules of Hooks 3. You might have more than one copy of React in the same app See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.

Steps to reproduce:

  1. npm install react-arc-progress -s
  2. crashed on render

Suggestions:

  • Commit 9fddab6 fixes this error. Please release a patch containing this commit

jarechiga11 avatar Dec 09 '19 21:12 jarechiga11

Thx for your feedback, i forgot to release, now this issue is fixed https://github.com/Hzy0913/arc-progress/commit/3767a5e55f6edebe0b868bb04b87ab0e18935023

Hzy0913 avatar Dec 10 '19 01:12 Hzy0913

@Hzy0913 你好哥哥 我在vue中配置好了 页面没有呢 打开调试 有canvas这个元素 页面上没有任何显示

zilingziling avatar Apr 01 '20 09:04 zilingziling

@Hzy0913 是渐变色填充不行

zilingziling avatar Apr 01 '20 09:04 zilingziling

@zilingziling 感谢反馈,已修复,请更新到[email protected]

Hzy0913 avatar Apr 16 '20 03:04 Hzy0913