Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue: react-ui-components cannot work with react17 #309

Open
peggyxia-alj opened this issue Sep 29, 2024 · 1 comment
Open

Issue: react-ui-components cannot work with react17 #309

peggyxia-alj opened this issue Sep 29, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@peggyxia-alj
Copy link

  • Version:
    react 17, next 12 and the react-ui-components is the latest version

  • Platform:
    MAC

Severity:

Critical

Description:

run the nextjs-react example, it cannot work with reach17(default setup in the exaple)

Steps to reproduce the error:

folk the github code, in the folder Guard/examples/nextjs-react, run npm run dev, it will show this error

Unhandled Runtime Error
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.

Call Stack
resolveDispatcher
node_modules/@authing/react-ui-components/node_modules/react/cjs/react.development.js (1465:0)
useEffect
node_modules/@authing/react-ui-components/node_modules/react/cjs/react.development.js (1508:0)
fW
node_modules/@authing/react-ui-components/lib/index.min.js (2:2209173)

@peggyxia-alj peggyxia-alj added the bug Something isn't working label Sep 29, 2024
@peggyxia-alj
Copy link
Author

能否考虑将react-ui-components升级到react 17?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant