Cannot read property 'Function' of undefined. I don’t know if this helps but it is on the lines calling this code.
One thing I discovered, even though it says in the docs that the
lang argument is not required that it would error on
lang being undefined. I tried to do the same thing with
onLoad but I am still getting the error.
I am using React and we are using server side rendering. I did add a the NoSSR package to see if that would fix it but it still does not.
Below is the code I am using to setup the SDK.
Another thing to note is I did try this solution as well with the same results.
This has to be a SSR thing. I can create the exact same app in create-react-app and in Nextjs, create-react-app is all ran client side, next is server side. Create-react-app works fine.
Here is the link to the magic for NextJS.
Here is the link to the magic for Create React App.
Ok not that this solves the problem but I had to put a
I am not going to accept this as the final answer since the documentation is off and this is more of a hack to get it to work.