Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

QRResImage 遇到两个使用错误 #27

@eleven-huang

Description

@eleven-huang

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是否已经加载了?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions