Skip to content

bug: Not hydrating in iOS 10 #1963

@tricki

Description

@tricki

Stencil version:

 @stencil/core@1.7.2

I'm submitting a:

[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/

Current behavior:
No components get hydrated.

Expected behavior:
Components get hydrated.

Steps to reproduce:
Open app in Safari on iOS 10.

Other information:
After some digging I found that the nomodule script (app.js) is being downloaded, but not the type="module" script (p-********.js). app.js only runs to this line, which evaluates to false:

    // Safari 10 support type="module" but still download and executes the nomodule script
    if (!currentScript || !currentScript.hasAttribute('nomodule') || !('onbeforeload' in currentScript)) { 

Commit which seems to have introduced this bug: 35d61a4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions