react-qrbtf icon indicating copy to clipboard operation
react-qrbtf copied to clipboard

QRResImage 遇到两个使用错误

Open eleven-huang opened this issue 3 years ago • 0 comments

Hello,在使用时候碰到2个issue

一. 在使用QRResImage时候,我估计可能是依然react-dom版本低了 Error: 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.

二. ReferenceError: window is not defined

在使用window前是否可以先判读下window是否已经加载了?

同时非常感谢,你们做的插件非常的棒。

eleven-huang avatar Jan 18 '22 11:01 eleven-huang