SortableJS / Sortable

Reorderable drag-and-drop lists for modern browsers and touch devices. No jQuery or framework required.
https://sortablejs.github.io/Sortable/
MIT License
29.41k stars 3.69k forks source link

navigator is not defined (1.10.0-rc3) #1553

Open Jgaleas7 opened 5 years ago

Jgaleas7 commented 5 years ago

navigator is not defined. in the new EDGE(chromiun) Version 77.0.197.1

sortablejs: "^1.10.0-rc3", error sortablejs

owen-m1 commented 5 years ago

Wow, no more releases until I get add some tests. You can use 1.9.0 for now.

owen-m1 commented 5 years ago

Oh, never mind, this is a new issue. v1.9.0 won't have a fix.

darthf1 commented 4 years ago

Confirmed having the same issue with v1.10 final (within Nuxt 2.9 as a dependency of vuedraggable v2.23.

image

willhoyle commented 4 years ago

If any Nuxt users need a quick fix (without using npm shrinkwrap or messing with package-lock.json), you can use my fork which just changes the package.json of the vuedraggable. It pins the Sortable version to 1.9.0 instead of ^1.9.0 which then uses 1.10.0 (broken for SSR) Just replace your vuedraggable: "1.XX.0" to vuedraggable: "willhoyle/Vue.Draggable"

ben-pelletier commented 4 years ago

Same issue started today with vuedraggable dependency on sortable. just fails to load application saying "navigator is not defined" @willhoyle fork works.

kelvin2go commented 4 years ago

@willhoyle thanks for the fork. it work on my nuxt 2.9.2 now.

FabianMartin commented 4 years ago

If you use yarn, you can add the following to your package.json

    "resolutions": {
        "sortablejs": "1.9.0"
    }