报错:[Vue warn]: Failed to resolve directive: directive (found in <Anonymous>)

    <body>
    <div id="app" v-directive>

    </div>
    <script>
        let MyPlugin = {}
        MyPlugin.install = function(Vue,options){
            console.log(options)
            Vue.directive("directive",{
                bind(el,binding){
                    el.style='width:100px; height:100px; background-color:red;'
                }
            })
        }
        Vue.use('MyPlugin', {someOption: true })
        var vm = new Vue({
            el:'#app',
            data:{

            }
        })
    </script>
</body>

https://blog.csdn.net/qq_42229253/article/details/81285804?utm_source=blogxgwz5