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

[ Svelte 5 + SortableJS ] Cannot read properties of null (reading 'nextSibling') since 5.0.0-next.162 #12139

Closed
anthonyivol opened this issue Jun 22, 2024 · 1 comment

Comments

@anthonyivol
Copy link

Describe the bug

I get this error when reordering a keyed each block with SortableJS since 5.0.0-next.162 : Cannot read properties of null (reading 'nextSibling') : repl
No error with manual reordering : repl
No error without the each key : repl

Reproduction

https://svelte-5-preview.vercel.app/#H4sIAAAAAAAAE31TwW6jMBD9lRFbCZAoSVfbPZBQaaXdQ889Jjk4eJJ4a2zLHpJGiH9f2eCEStWCkLHn-c2beXafHIREl1SbPlGsxaRKfhmTFAldjZ-4M0rCpEic7mzjV9auscLQy1ZtSbRGW4I3bYntJcLB6hZSN03_unTlUf6TSKANCa0c1LCBVCtMC0jpolPYRYRDiQ0hhxoeHDHCbDMH7vIIlMLRjfsBDwdsKMtyqF-gD8vUaOW0xFLqY5a2ulOU5mNE4eWmOPNEhd8D08OUaJnXWcHT87K4B7T6o3gFGZ5RUcwEt8fnI-hBS_6qOH4UoPAS_mCAGsKuUXF4YV5rq8_4Sthmca34giZf3dMN8XfIA-c0jO0YlUROqCFj1hbBm4mS9Mh4a1eU32hz9faUZcms3a3mMZTYoiKoA2pzo7ujzLV0RooGs1mup_yL-CSggGUReSPMInVWBfRY2s3mUYZFbTlaX9bc7v9386mAZXB_2KqtWi_uR1j9tuwITHHgVhsgfUtQBSgXZ9gLxSs6CVf3_rgM0EjmXL1N_GybhJvQf0PWnO6mMgdnJjuELAz5EK33jHcj50yPgrANdDG6doapl_kp6wPbMIMsPmHWCy7O06xfeEmDr3dcXO_twg-nMPRRa0n6jaxQxywf2-PoKjFUVXpdU4dbZo9CVbAsny22sJxOHBfOSHat4CDxY1o7MhNxq9j1kSvUGG9oZ522VfBr2mgY50IdK_huPuCniXz74MijZVx0roIf9wBr3o9Wd_5iXk6CIk-jpWfeS9a8RwXrxVhXUiSt5uIgkCcV2Q6H3fAP2er6sAYFAAA=

Logs

TypeError: Cannot read properties of null (reading 'nextSibling')
    at move (chunk-6KMGZUHC.js?v=2feb0617:792:12)
    at reconcile (chunk-6KMGZUHC.js?v=2feb0617:658:11)
    at chunk-6KMGZUHC.js?v=2feb0617:563:7
    at execute_reaction_fn (chunk-SAGQ4HTH.js?v=2feb0617:1514:21)
    at execute_effect (chunk-SAGQ4HTH.js?v=2feb0617:1638:21)
    at process_effects (chunk-SAGQ4HTH.js?v=2feb0617:1750:13)
    at flush_queued_root_effects (chunk-SAGQ4HTH.js?v=2feb0617:1677:9)
    at process_deferred (:5173/node_modules/.vite/deps/chunk-SAGQ4HTH.js?v=2feb0617:1710:3)TypeError: Cannot read properties of null (reading 'nextSibling')
    at move (chunk-6KMGZUHC.js?v=2feb0617:792:12)
    at reconcile (chunk-6KMGZUHC.js?v=2feb0617:658:11)
    at chunk-6KMGZUHC.js?v=2feb0617:563:7
    at execute_reaction_fn (chunk-SAGQ4HTH.js?v=2feb0617:1514:21)
    at execute_effect (chunk-SAGQ4HTH.js?v=2feb0617:1638:21)
    at process_effects (chunk-SAGQ4HTH.js?v=2feb0617:1750:13)
    at flush_queued_root_effects (chunk-SAGQ4HTH.js?v=2feb0617:1677:9)
    at process_deferred (chunk-SAGQ4HTH.js?v=2feb0617:1710:3)

System Info

System:
    OS: macOS 14.4.1
    CPU: (8) arm64 Apple M2
    Memory: 88.95 MB / 8.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 21.4.0 - ~/.nvm/versions/node/v21.4.0/bin/node
    npm: 10.2.4 - ~/.nvm/versions/node/v21.4.0/bin/npm
    pnpm: 9.1.1 - /opt/homebrew/bin/pnpm
    bun: 1.1.8 - /opt/homebrew/bin/bun
  Browsers:
    Brave Browser: 126.1.67.115
    Chrome: 124.0.6367.208
    Safari: 17.4.1
  npmPackages:
    svelte: 5.0.0-next.162 => 5.0.0-next.162

Severity

annoyance

@7nik
Copy link

7nik commented Jun 22, 2024

Duplicate of #11826 - you (or third-party libs you use) shouldn't change DOM controlled by Svelte.

@Conduitry Conduitry closed this as not planned Won't fix, can't repro, duplicate, stale Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants