diff --git a/lib/app/client.js b/lib/app/client.js index a4db176d1f..728f0cc853 100644 --- a/lib/app/client.js +++ b/lib/app/client.js @@ -147,7 +147,7 @@ function fixPrepatch (to, ___) { let instances = getMatchedComponentsInstances(to) _lastComponentsFiles = instances.map((instance, i) => { if (!instance) return ''; - if (_lastPaths[i] === instance.constructor._path) { + if (_lastPaths[i] === instance.constructor._path && typeof instance.constructor.options.data === 'function') { let newData = instance.constructor.options.data() for (let key in newData) { Vue.set(instance.$data, key, newData[key])