vue-hackernews-2.0
vue-hackernews-2.0 copied to clipboard
Uncaught (in promise) DOMException: Failed to execute 'appendChild' on 'Node'
when I use ssr, For some reason a few of the pages are getting this error:
Uncaught (in promise) DOMException: Failed to execute 'appendChild' on 'Node': This node type does not support this method.
I'm having the problem but only on refresh! What could be the problem?
when I use ssr,
It seems this is not about the hackernew example?
If so: this is not a support forum. We have one at https://forum.vuejs.org - and chat at chat.vuejs.org
Please ask questions there, and provide code for people to read.
@yongbingz Do you solve it? I'm having this problem too...
Adding following to the webpack vue-loader options worked for me
minimize: {
collapseWhitespace: false,
}
As in:
module.exports = {
...
module: {
...
rules: [
...,
{
test: /\.vue$/,
loader: 'vue-loader',
options: {
...,
minimize: {
collapseWhitespace: false,
}
},
....
},
]
}
}