'Uncaught Error: Must be attached' based Dom instance problem

Hi guys,
I am struggling with this error Blaze: ‘Uncaught Error: Must be attached’. The description of this error is posted at the end of my question. What i understood was this was getting because of DOM instance that stays when we move to next screen. This also disables the next page functionality. As per my observation the issue could be resolved with a simple re-load on that page. So used I used a set timeout() with reload. This has fixed issue for me on web. But i know this is not proper solution. this problem is getting enhanced when i am creating a web app. so i am looking for help.

Thanks in advance for those who are gonna put any sort of effort to resolve this issue.

2cda4ae4164ef8b5a529d4bd73f3e162203af5ed.js?meteor_js_resource=true:107 Uncaught Error: Must be attached
at f._DOMRange.t.containsElement (2cda4ae4164ef8b5a529d4bd73f3e162203af5ed.js?meteor_js_resource=true:107)
at f._DOMRange. (2cda4ae4164ef8b5a529d4bd73f3e162203af5ed.js?meteor_js_resource=true:107)
at HTMLDivElement. (2cda4ae4164ef8b5a529d4bd73f3e162203af5ed.js?meteor_js_resource=true:107)
at HTMLBodyElement.dispatch (2cda4ae4164ef8b5a529d4bd73f3e162203af5ed.js?meteor_js_resource=true:79)
at HTMLBodyElement.g.handle (2cda4ae4164ef8b5a529d4bd73f3e162203af5ed.js?meteor_js_resource=true:79)

Hello AkhileshChandel,
sorry for reviving an old thread but I have the same issue here. Have you had any luck with solving the problem?

Hi @ruerob, We debugged that issue and encounter that the Parent page (The page from where you arrived on current page) does not have body tag in it and Child page(Current page) has it.
So make Sure that you have designed the html pages using the standard layout. if you are using body in tag, use it in both of them or If you plan to go with body tags, just remove it from both of them. Idea is to get the uniformity in code.

Hope this helps you.

1 Like