I'm currently working on developing a Vue application plugin. However, I encountered an issue while attempting to implement the following code snippet:
export default function(Vue){
Vue.auth = Authentication;
Object.defineProperties(Vue.prototype, {
$auth: {
get() {return Vue.auth; }
}
});
}
The error that occurred 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
I am unable to identify the root cause of this issue. Any insights or suggestions would be greatly appreciated.