Skip to content

Issue when deploying Yoga to Vecel. [React Hook "**" cannot be called at the top level]. #2110

Answered by n1ru4l
inc16sec asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @inc16sec,

You can disable this React-specific rule eslint rule via the following comment at the beginning of the file.

/* eslint-disable react-hooks/rules-of-hooks */

You can learn more about disabling eslint rules at https://eslint.org/docs/latest/user-guide/configuring/rules#disabling-rules

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@inc16sec
Comment options

Answer selected by n1ru4l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants