Executando verificação de segurança...
-1

Ajuda com a biblioteca radix-ui

Estou utilizando a biblioteca do Radix-ui mais o nextjs mais me retorna um erro já realizei alteração nas versões mais não resolver

‘‘‘cmd

Server 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
    Se https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.

‘‘‘

Carregando publicação patrocinada...
2

Olá Gabriel, me parece que você quis usar o highlight do markdown, mas você deveria usar uma seguência de três crases '```' ou três tils '~~~' para fazer o highlight, por exemplo:

```cmd
Server 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:

You might have mismatching versions of React and the renderer (such as React DOM)
You might be breaking the Rules of Hooks
You might have more than one copy of React in the same app
Se https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
```

que ficará renderizado da seguinte forma:

Server 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:

You might have mismatching versions of React and the renderer (such as React DOM)
You might be breaking the Rules of Hooks
You might have more than one copy of React in the same app
Se https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
1

Gabriel, pelo que estou entendendo, o problema não está no Radix-ui, e sim em como você está implementando um Hook (e possivelmente, quebrando as regras de como se utiliza um).