[英]Cannot resolve module 'babel-runtime/core-js/object/define-properties'
I'm trying to create a plugin for Vue application. 我正在尝试为Vue应用程序创建一个插件。 I got an error when I wrote the following code:
我编写以下代码时遇到错误:
export default function(Vue){
Vue.auth = Authentication;
Object.defineProperties(Vue.prototype, {
$auth: {
get() {return Vue.auth; }
}
});
}
and the error is: 而错误是:
ERROR in ./src/authentication.js Module not found: Error: Cannot resolve module 'babel-runtime/core-js/object/define-properties' in D:\\Dropbox\\www\\Vue\\src @ ./src/authentication.js 7:24-81
./src/authentication.js中的错误找不到模块:错误:无法在D:\\ Dropbox \\ www \\ Vue \\ src @ ./src/authentication中解析模块'babel-runtime / core-js / object / define-properties' .js 7:24-81
What's the problem here? 这有什么问题? I couldn't solve it.
我无法解决它。 Any idea?
任何的想法?
我有同样的错误:安装babel-runtime
npm install babel-runtime --save
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.