-
Notifications
You must be signed in to change notification settings - Fork 183
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 4 support #557
Comments
I played a bit, and I'm able to get typings support in VS Code, but in a ugly way, but I hope it can help you to fix easily in a better way. It looks like the Once I found the pieces that was breaking the typings, I did add a rollup step in The step is a
Unfortunately it's new-line sensible, so it could not work in a pipeline, but for a one-time transformation it could get the job done. |
@rallets I forced installed it, too. And then I noticed that the Modal component wasn't working properly. (The modal backdrop appears, but not the actual modal content.) Is it working for you? |
@jonjes currently I don't use Models, only offcanvas, so I haven't checked them. |
Hi, we are planning a Bootstrap 5.3.0 release very soon (this week?) after testing a pre release. |
svelte-file-dropzone just updated
|
Any update on this? I'm happy to engage with testing the pre-release. |
Hi @rallets It's using the Svelte REPL running svelte 4.1.1, and all I did was copy and paste the first Modal example from the Sveltestrap Modal page You can click the "Open Modal" button and see that the modal content doesn't appear. Only the gray background appears, and it locks the page because you can't clear it to close the invisible modal. |
Hi @jonjes I confirm that it doesn't work for me either. Until it is fixed, you can think to switch to Offcanvas, those are working for me. Basically you can get the same behavior, you just need to add some classes to mimic the modal "size" attributes. Just ping me if you need those. |
I would really prefer a staged approach:
|
Hey so in testing, another issue with Svelte 4 is we need to update all the TypeScript deps.. deprecation warnings and types complain about To avoid breaking Svelte 3 apps, we'll probably have to do a major release to v6 and leave v5 for Svelte 3. I'm hoping this is a simple-ish search/replace fix, will look this weekend. |
Trying to support Svelte 3 & 4 is going to be a pain, so I think what I'll do is:
|
Hi @bestguy I just testet the latest release 5.11 and everything works fine for me. About the Svelte 4 support, if you want I have already a list of things to change to get svelte 4 typings working better. The content of the zip file is:
As extra request, it will be nice to have an Summing up, for what I did experience currently it doesn't work:
not sure exactly what the problem is here. Thanks for your work. |
This is great @rallets, thanks will review |
I suspect the other issue you'll run into is that the library is using an older version of |
Thank you @rallets Is it possible that you incorporate your changes for Svelte4 support in a PR? I'm happy to test and contribute to that PR to make it as ready as possible. |
@kefahi I would like to do it, but I am currently in parental leave and short of time. |
Thank you @rallets |
@kefahi tks, we has been blessed with a beautiful girl 🥰 I have also added my configs file, if you need them. It has all configs you could need, included
The folder The folder Hope this helps. Just ping me if you wonder something 👍 |
@rallets Congrats!!! |
When is the release version going to be made indicating Svelte 4 support? I am waiting on some other projects to support Svelte 4 and it's delayed due to this project not officially supporting Svelte 4 yet. So would appreciate an update to the main readme that it is now supported. Should this version is given a proper release number and dependency for svelte4. |
May I suggest that you help with testing the above PR (Which provides Svelte4 support) to validate if it covers your usecase. Please provide any notes / issues / feedback you may have. This will bring us closer to accomplishing the objective. |
@kefahi Can I join with that testing? I want to migrate our project with Svelte4 and Sveltestrap. |
@kefahi It looks this project is not longer actively maintained, an it looks you guys have the capacity to bug fix and upgrade. have you thought to fork it and keep it rolling? |
Hi, I'm wondering if you have any plans to support Svelte 4. Right now I need to force install
sveltestrap
vianpm install --legacy-peer-deps
.I see commit in main, does it means this package is still actively maintained? If so, any plans for a release soon-sh?
Thank you
The text was updated successfully, but these errors were encountered: