Skip to content

Different results in the SSR Vs CSR and problem with Vue SSR. #1993

Closed

Description

@patrickalima98

Stencil version:

 @stencil/[email protected]<version>

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:
The stencil are creating different results in the RSS VS Client, this is a problem for the other libs/frameworks which have a vdom, for example is very bad to try use any lib or component built with the Stencil in a Nuxt Project Universal (SSR). The Vue'll throwing few errors when hydrating on CSR.

I'm using a plugin in my Nuxt Project, for use my Stencil components. Because the SSR and CSR have different outputs, I thing which is a problem with the StencilJS hydrate.

Expected behavior:
The code in SSR and CRS are the same, and Vue works fine.

Steps to reproduce:
1- clone my example git clone https://github.com/patrickalima98/stencil-nuxt.git
2- npm i
3- npm run dev
4- Open your browser in http://localhost:3000
5- Open the console browser and see the errors.

Other information:

On the assertNodeMatch:

SSR:

<bm-button color="is-primary" class="hydrated" s-id="1">
  <button class="button is-primary" c-id="1.0.0.0">
    <!--s.1.1.1.0.--><!--t.0.1--> Click Me! 
  </button>
</bm-button>

CSR, before vue hydration:

<bm-button color="is-primary" class="hydrated" s-id="1">
  Click Me!
</bm-button>

After vue & stencil hydration:

<bm-button color="is-primary" class="hydrated">
<!---->
  <button class="button is-primary hydrated">
    Click Me!
  </button>
</bm-button>

image

Activity

  1. changed the title [-]Different results in the RSS Vs CSR and problem with Vue SSR.[/-] [+]Different results in the SSR Vs CSR and problem with Vue SSR.[/+] on Nov 17, 2019
  2. rwaskiewicz commented on Sep 6, 2023

    @rwaskiewicz
    Member

    Hey there 👋

    I apologize it took so long for someone on the team to acknowledge this issue. If you’re willing/able, would you be able to create a minimal reproduction case for the team using the latest versions of Stencil's Framework Wrappers + Vue? If not, I completely understand. Again, I apologize for the lack of response here

  3. added
    ionitron: needs reproduction
    and removed on Sep 6, 2023
  4. added
    ionitron: stale issue
    on Oct 8, 2023
  5. ionitron-bot commented on Oct 8, 2023

    @ionitron-bot

    Thanks for the issue! This issue is being closed due to inactivity. If this is still an issue with the latest version of Stencil, please create a new issue and ensure the template is fully filled out.

    Thank you for using Stencil!

  6. locked and limited conversation to collaborators on Oct 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ionitron: needs reproductionionitron: stale issueslot-related

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions