question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SvelteKit support and breakage on the newest Svelte versions

See original GitHub issue

Hi there,

Awesome package!

Though I understand SvelteKit is still beta, I thought I’d ask if there were any plans of adopting support.

Tested it out just now with SvelteKit v1.0.0-next.125 and it unfortunately appears very buggy with items vanishing, sticking, and stacking in weird ways. I didn’t see any explicit errors being thrown, so not sure what the underlying issue is.

To reproduce, I am just initializing a skeleton project with npm init svelte@next and then replacing the contents of src/routes/index.svelte with the provided Super basic, single list, no animation svelte-dnd-action example code.

GIF showing buggy behavior

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:22 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
isaacHagoelcommented, Jul 12, 2021

I think it works fine with Sapper. I wonder what the issue is. Will try to make time and have a look. Thx for letting me know

On Tue, Jul 13, 2021, 05:48 Ross @.***> wrote:

Hi there,

Awesome package!

Though I understand SvelteKit is still beta, I thought I’d still ask if there were any plans of adopting support.

Tested it out just now with SvelteKit v1.0.0-next.125 and it unfortunately appears very buggy with items vanishing, sticking, and stacking in weird ways. I didn’t see any explicit errors being thrown, so not sure what the underlying issue is.

To reproduce, I am just initializing a skeleton project with npm init @.*** and then replacing the contents of src/routes/index.svelte with the provided Super basic, single list, no animation https://svelte.dev/repl/bbd709b1a00b453e94658392c97a018a?version=3.24.1 svelte-dnd-action example code.

[image: GIF showing buggy behavior] https://camo.githubusercontent.com/ccd5e8ad7204394b7864936428d6b3dd3eec886aabede0b4a6c9fc459f76e54d/68747470733a2f2f692e706f7374696d672e63632f33784464333052722f7376656c74652d646e642d616374696f6e2d6b69742d6275672e676966

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/isaacHagoel/svelte-dnd-action/issues/304, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE4OZCYKY6PN3CDWWPQCVGDTXNBIZANCNFSM5AHP6UKA .

1reaction
isaacHagoelcommented, Jul 16, 2021

Alright, I created a bug for Svelte, including a REPL that reproduces it without using the library. It happens just by reordering a simple array. It started happening in v3.38.0, any version before should work fine. Here is the svelte issue: https://github.com/sveltejs/svelte/issues/6535

The workaround - use Svelte v3.37. or below. for now*

@SleepingRobot would be awesome if you could find which version of SvelteKit introduced this issue. If not, I will try to find time to do it soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What's new in Svelte: September 2022
Breaking changes: The filesystem-based router and load API improves the way routes are managed. Before installing version @sveltejs/kit@1.0.
Read more >
Migrating Breaking Changes in SvelteKit - Netlify
SvelteKit has gone through a few breaking changes recently including an entire routing overhaul, changes to the load API, and a switch to ......
Read more >
Breaking changes in SvelteKit, August 2022 - Josh Collinsworth
This post will help cover what's changed, and how to convert the syntax and structure from the old to the new. Let's dig...
Read more >
kit/CHANGELOG.md at master · sveltejs/kit · GitHub
Patch Changes. [breaking] make sveltekit() return a promise of array of Vite plugins (#7994) ... Bump vite-plugin-svelte and required vite version (#6583).
Read more >
SvelteKit Breaking Changes 2022 - My Reactions and What ...
SvelteKit just announced some major breaking changes. Here's what you need ... What's New in Svelte - https:// svelte.dev/blog/whats- new -in-.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found