Skip to content
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

Uncaught Error: Unable to find global parent component window #438

Open
Oleksandr200 opened this issue Jun 1, 2023 · 1 comment
Open

Comments

@Oleksandr200
Copy link

Oleksandr200 commented Jun 1, 2023

We faced out the issue when we have the zoid iframe and the zoid child component on the same domain. The rendering library is react on both sides.

The parent zoid component lays on https://domain/parent-path/index.hml
The child zoid component url is https://domain/child-path/index.html

As I see Zoid set type of parent window as GLOBAL

if (initialChildDomain === getDomain(window)) {

and then it cannot find this global window.

What does it mean GLOBAL type of window?
What conditions should be observed that zoid could work in one domain?

@timhemendinger
Copy link

I was getting this same error after upgrading from 9.0.63 to 10.3.3. What ended up fixing it was changing the domain property to allowedParentDomains in the create method (along with putting my domain string in brackets as allowedParentDomains in an array).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants