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

bug: SSR "TypeError: Cannot read property 'width' of undefined" when updating from Ionic 5.0.5 to Ionic 5.1.0 #21203

Closed
KevinBassaDevelopment opened this issue May 4, 2020 · 4 comments
Labels

Comments

@KevinBassaDevelopment
Copy link

KevinBassaDevelopment commented May 4, 2020

Bug Report

Ionic version:
5.1.0

Current behavior:
Error message when prerendering:
"TypeError: Cannot read property 'width' of undefined"

Expected behavior:
SSR + prerender should work

Steps to reproduce:
Update ionic from 5.0.5 to 5.1.0

Related code:
I build a small example to reproduce the bug:
https://github.com/KevinBassaDevelopment/ionic-ssr-bug

@ionitron-bot ionitron-bot bot added the triage label May 4, 2020
@liamdebeasi
Copy link
Contributor

Thanks for the issue. I am going to close this as a duplicate of #21138.

@KevinBassaDevelopment
Copy link
Author

Ok, I thought it might be something different because I'm not using slider and because this issue was not present with Ionic 5.0.5

@liamdebeasi
Copy link
Contributor

Yeah for some reason ion-slides is always pre-rendered even if you aren't using it in your app. It's probably related to how we bundle Swiper with Ionic.

@ionitron-bot
Copy link

ionitron-bot bot commented Jun 5, 2020

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Jun 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants