-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
× Error: Invalid hook call. #5
Comments
Simplified version below still gets ERROR: invalid hook call
|
I'm getting the same problem...the link to the react docs in the error message makes me think that it's either this library has listed the dependency incorrectly which then breaks our dependency tree or the library is using hooks incorrectly. Would be great to get a fix in for this. My project is using react v17. |
@perrycipolloni I'm sorry convertkit-react does not support versions of React that do not support hooks. You didn't specify what version you are using but I'm assuming that from your need to use it in a class, it's probably an older version of React you have. Let me know if I'm wrong with that assumption. @rug1 I might need a little more clarity on your setup. Could it be that you have different versions of React and ReactDOM? This package relies on your installed version of React and has no other dependencies. |
I'll close this for now as I'm unable to reproduce on recent versions of React |
Was able to reproduce this Today and noticed that using a different patch version from the one the library uses (17.0.2) still causes the error for React 17 users. Will work on a fix soon |
Curious, do we have an update for this error? Or good work around in the meantime? |
Issue still exists. @josephrexme any plans to fix this? |
I am getting this issue with the following:
|
Trying to bring Convertkit form into a React application. Directly using the JavaScript embed provided by CK
<script async data-uid="e9274113f5" src="https://astounding-creator-7935.ck.page/e9274113f5/index.js"></script>
does not work as-is in React. Using convertkit-react, the connection is made but the template is not being brought in. I am getting: Error: Invalid hook call.The example usage does not show the code in relation to the
render()
function.This is the standalone form https://astounding-creator-7935.ck.page/e9274113f5
The text was updated successfully, but these errors were encountered: