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
Unhandled Rejection (TypeError): Object(...) is not a function #64
Comments
thanks for submission @sumit194 I wasn't able to reproduce this error using barebones app w/ specified package versions. Can you post more details on auth API you are using(e.g. signInWithRedirect) + your router configuration? |
@sumit194 The default You can also override the default implementation by following this guide. |
Hi @oleksandrpravosudko-okta below are the implementation of my Okta Auth component
Now it is working fine, but if I remove the @shuowu yes I have react-router-dom as a dependency in my project, and after overriding the |
@sumit194 Can you try to move the oktaAuth initialization outside of the OktaProvider? As it may end up with creating more than one oktaAuth instances, which is not expected and may cause weird errors. |
@shuowu before it was like that only, but after getting this issue I have to move it inside the component to use the |
@sumit194 The error looks like a module export issue, but I cannot tell how it relevant with override the restoreOriginalUrl callback. Can you try our official sample to see if you can repro the issue there? |
@shuowu sure, I'll try that, also can you please explain more about the module export issue (any specific component at okta package side or project side) |
@sumit194 I saw some related issues by searching the error (facebook/react#14484). You can check the details in the linked thread. |
I believe @sumit194 is referring to circular dependencies with exports/imports. |
For anyone still tracking this, I had this issue as well, and it was because my |
@sumit194 Does @radicand 's comment above help? Also, the dependency of react-router has been removed from the |
Close the issue for now, feel free to reopen it if the issue still exist. |
Getting this error while loading the app first time after login redirect, but when manually try to remove the implicit/callback and reload the application it loads fine
After investigating I found out that the issue might be in
okta-react/src/Security.tsx
Line 47 in 3270dda
Should we keep this
okta-react/src/Security.tsx
Line 47 in 3270dda
@okta/okta-auth-js: 4.2.0
@okta/okta-react: 4.0.0
Thanks
The text was updated successfully, but these errors were encountered: