Sortable: navigator is not defined (1.10.0-rc3)

Created on 27 Jun 2019  路  7Comments  路  Source: SortableJS/Sortable

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

sortablejs: "^1.10.0-rc3",
error sortablejs

fix

Most helpful comment

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

image

All 7 comments

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

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

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

image

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"

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

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

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

    "resolutions": {
        "sortablejs": "1.9.0"
    }
Was this page helpful?
0 / 5 - 0 ratings

Related issues

binitghetiya picture binitghetiya  路  4Comments

jkrasnay picture jkrasnay  路  3Comments

chrishaigy picture chrishaigy  路  3Comments

Webifi picture Webifi  路  3Comments

kevinvanmierlo picture kevinvanmierlo  路  3Comments