无法解析模块'babel-runtime/core-js/object/define-properties'

use*_*181 3 javascript vue.js

我正在尝试为Vue应用程序创建一个插件.我编写以下代码时遇到错误:

export default function(Vue){
    Vue.auth = Authentication;

    Object.defineProperties(Vue.prototype, {
        $auth: {
            get() {return Vue.auth; }
        }
    });
}
Run Code Online (Sandbox Code Playgroud)

而错误是:

./src/authentication.js中的错误找不到模块:错误:无法在D:\ Dropbox\www\Vue\src @ ./src/authentication中解析模块'babel-runtime/core-js/object/define-properties' .js 7:24-81

这有什么问题?我无法解决它.任何的想法?

ikn*_*edo 6

我有同样的错误:安装babel-runtime

npm install babel-runtime --save
Run Code Online (Sandbox Code Playgroud)