From 4a184411b8a1c1078ff1d3aea5ce465bd2f8bc47 Mon Sep 17 00:00:00 2001 From: Adam AQUESBI Date: Tue, 26 Jan 2021 11:05:38 +0100 Subject: [PATCH] Fix : Vue3 Compatibility issue - Vue.prototype --- src/vue-logger.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/vue-logger.ts b/src/vue-logger.ts index bd2cde3..1091fb1 100644 --- a/src/vue-logger.ts +++ b/src/vue-logger.ts @@ -12,7 +12,12 @@ class VueLogger implements ILogger { if (this.isValidOptions(options, this.logLevels)) { Vue.$log = this.initLoggerInstance(options, this.logLevels); - Vue.prototype.$log = Vue.$log; + + /* + ** Vue3 Compatibility Issue + */ + // Vue.prototype.$log = Vue.$log; + } else { throw new Error(this.errorMessage); }