-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Svelte height/width binding does not work in CSB #5132
Comments
I did some digging. I originally though there was something strange happening during transpilation but this was false, the other console error is unrelated. Sara mentioned that the version of the compiler may be quite old so I did some digging.
|
So in short, update the default version of Svelte used by the default template and this problem will go away. I had a look around but I have no idea where these defaults are set (or if they are in code/ in this repo), or I would happily make PR. At a guess it would be easiest to just use |
Hey Thank you so much for the digging as I do not have a lot of experience with Svelte, I have updated the default template and now they will all be forked from the latest version. I will put on my calendar to update the templates every two weeks or something, the reason I am kind of weary of using the latest tag is that we have done that with some templates like vue in the past, and then when somethings were updated in the compiler the default sandbox broke and since I am more in charge of community I will have time to do these things and go there updating the templates to make sure nothing breaks :) I will leave this open since I want to update the compiler version on Monday and will close with that :) Thank you again! |
Sounds good! If there is every anything Svelte-ish I can help with, feel free to ping me. Thanks for sorting this! |
Hey! Did some digging, turns out we get the compiler version from what svelte version you are using so when you update svelte you also update the compiler that runs to compile it It seems that will not be a problem in the future as long as we keep the svelte version updated. I will ping you with any issues with Svelte as the help with it would be very much appreciated and again thank you so much for looking into it |
🐛 bug report
Preflight Checklist
Contributing Guidelines
for this project.
Code of Conduct
that this project adheres to.
to file, without success.
Description of the problem
When using Svelte's element bindings (
bind:offsetHeight
etc.) an unrecoverable error is thrown in the sandbox when showing and hiding the bound element.To Reproduce
Use a svelte height/ width binding inside an
if
block with the default svelte sandbox:Add the following code to a default svelte template:
Link to sandbox: link
The text was updated successfully, but these errors were encountered: