-
Notifications
You must be signed in to change notification settings - Fork 13
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
"Cannot read properties of undefined (reading 'label')" error blocks Google Auth #38
Comments
@doraby It's seems interesting. I couldn't understand the relation between cise and the authorization block. I can reproduce it in Chrome (I get the error in console and empty auth popup), however auth popup isn't blocked in Firefox even I get the same error. I'll further investigate it. |
@hasanbalci We explored this case more and found out that in Firefox window authentication is also blocked, it just looks different. As soon as auth is processing in the new window, cytoscape cise is trying to launch in this new window, doesn’t find necessary elements, maybe related to cytoscape and blocks all functionality in this new window. We tried to remove the import cytoscape cise and the problem disappeared, but the cise layout is amazing; other layouts don't bring such a visualization value. Is it possible to restrict to running in a new window? |
I applied the fix suggested by @AlexDovgalenok to the |
I assume this is resolved. |
We are using the cytoscape.js and cytoscape-cise npm package on our project and have encountered a problem with Google authentication that this package causes. The following error appears in the console when the Google authentication popup appears, the popup is empty, and authentication is blocked:
Step to reproduce:
Desired behavior:
Authentication through Google is working; the popup contains functionality for authorization, and there is no error in the console.
The code:
The code works fine apart from this authorization block. We tried to use authorization both in the popup and in a separate window - in both cases the same error appears in the console.
We also tried to connect the cytoscape and cytoscape-cise libraries via import - authorization blocking occurs in all cases.
Authorization is blocked on any page if the user has previously visited the page where the component with cytoscape was loaded. It seems that cytoscape-cise reacts to a new window created during authorization. Also, bug is reproduced even if we don't use the cise layout but import the cytoscape-cise library.
How to restrict the library cytoscape to the component in which it should run and prevent running during authentication?
The text was updated successfully, but these errors were encountered: