haunted icon indicating copy to clipboard operation
haunted copied to clipboard

Error in safari mobile 10.3

Open felipeegasneris opened this issue 6 years ago • 11 comments

Hi, I'm building a component and testing it on safari mobile 10.3 and I getting this error: TypeError: The Element.shadowRoot getter can only be used on instances of Element on this line: this._container = new Container(renderer, this.shadowRoot, this); do you know why is this error? I need to make works haunted on Safari 10.3, please help me :(

felipeegasneris avatar May 30 '19 17:05 felipeegasneris

Thanks for reporting. We'll figure it out. Sounds like this is not an element. That's odd. What is this? there, can you inspect that?

matthewp avatar May 30 '19 18:05 matthewp

inspecting this, I get: this: "TypeError: The Node.ownerDocument getter can only be used on instances of Node"

felipeegasneris avatar May 30 '19 18:05 felipeegasneris

any clue on that @matthewp ?

felipeegasneris avatar May 30 '19 21:05 felipeegasneris

Can you give me a minimal example so that I can take a look? I don't think that version of Safari supports modules so my examples I have don't run on it. I guess you probably need a bundled app. If you can give me a minimal example I'll try to debug it.

matthewp avatar May 31 '19 11:05 matthewp

ping @felipeegasneris

matthewp avatar Jul 11 '19 11:07 matthewp

I ran into the same issue as @felipeegasneris. I created this reproduction branch: https://github.com/Neovici/cosmoz-image-viewer/tree/haunted-bug-repro

Just do npm start and open http://localhost:8080/dist/index.html in Safari 10.

cristinecula avatar Sep 05 '19 06:09 cristinecula

Cool, thanks for the reproduce!

matthewp avatar Sep 05 '19 10:09 matthewp

:ping:

felipeegasneris avatar Nov 18 '19 17:11 felipeegasneris

any clue on this?

felipeegasneris avatar Jan 29 '20 14:01 felipeegasneris

No, sorry. It's unlikely I'll personally be able to get to this any time soon. I would love a PR that fixes it.

matthewp avatar Jan 29 '20 14:01 matthewp

This looks to be fixed. I just tested via iOS Simulator -- I can repro per the above steps on iPhone 7 in iOS 10.3.1, but no error & page w/ image loads fine in 11.3, 12.4, 13.5 (iPhone 8).

cletusw avatar Aug 26 '20 20:08 cletusw