Home

Issue: 3051

TypeError: Cannot read property 'parentNode' of undefined

[issue link]

I’ve been using the default mode in nuxt config which is universal. Recently, i’ve used the mode: ‘spa’ as I need to host on a static site. During development, I’ve kept running into this console log

TypeError: Cannot read property 'parentNode' of undefined
    at Object.parentNode (vue.runtime.esm.js:5269)
    at VueComponent.patch [as __patch__] (vue.runtime.esm.js:6027)
    at VueComponent.Vue._update (vue.runtime.esm.js:2643)
    at VueComponent.updateComponent (vue.runtime.esm.js:2761)
    at Watcher.get (vue.runtime.esm.js:3111)
    at Watcher.run (vue.runtime.esm.js:3188)
    at flushSchedulerQueue (vue.runtime.esm.js:2950)
    at Array.<anonymous> (vue.runtime.esm.js:1809)
    at flushCallbacks (vue.runtime.esm.js:1730)

I’ve almost strip everything down to left only an index page and default and remove all vue components imports and still running to this issue. I’m unsure what the issue is. My version is currently on 1.0.0

This only happens in SPA mode

Does upgrading v1.4.0 helps? Cuz i’m having some issues with v1.4.0 with postcss-loader as well

This question is available on Nuxt.js community (#c2643)