What is the reason for the error report when using vue-sortable?

use vue-sortable to report an error in vue2.0, and the error message is as follows:
[Vue warn]: Error in directive sortable update hook: "Sortable: el must be HTMLElement, and not [object Undefined]"
the code for using sortable is as follows:

import Sortable from "vue-sortable"
Vue.use(Sortable);

        <div id="frame_layout"  v-sortable>

            <div class="frame_group_div">
                1
            </div>

            <div class="frame_group_div">
                2
            </div>
            <div class="frame_group_div">
                3
            </div>
        </div>
The same is true on

github. How to use vue-sortable? in vue?

Mar.05,2021

this vue-sortable does not support vue2.0
vue2.0 should use Vue-Draggable
github address: https://github.com/SortableJS.

Menu