diff --git a/src/lib/add-attrs.js b/src/lib/add-attrs.js
index <HASH>..<HASH> 100644
--- a/src/lib/add-attrs.js
+++ b/src/lib/add-attrs.js
@@ -1,10 +1,11 @@
+import Vue from 'vue'
+
 export default function addAttrs (vm, attrs) {
-  const consoleWarnSave = console.error
-  console.error = () => {}
+  Vue.config.silent = true
   if (attrs) {
     vm.$attrs = attrs
   } else {
     vm.$attrs = {}
   }
-  console.error = consoleWarnSave
+  Vue.config.silent = false
 }
diff --git a/src/lib/add-listeners.js b/src/lib/add-listeners.js
index <HASH>..<HASH> 100644
--- a/src/lib/add-listeners.js
+++ b/src/lib/add-listeners.js
@@ -1,10 +1,11 @@
+import Vue from 'vue'
+
 export default function addListeners (vm, listeners) {
-  const consoleWarnSave = console.error
-  console.error = () => {}
+  Vue.config.silent = true
   if (listeners) {
     vm.$listeners = listeners
   } else {
     vm.$listeners = {}
   }
-  console.error = consoleWarnSave
+  Vue.config.silent = false
 }
refactor: set Vue to silent when adding listeners

closes #<I>