vue-hackernews-2.0 icon indicating copy to clipboard operation
vue-hackernews-2.0 copied to clipboard

Uncaught (in promise) DOMException: Failed to execute 'appendChild' on 'Node'

Open Bensonyy opened this issue 6 years ago • 3 comments

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?

Bensonyy avatar May 04 '18 15:05 Bensonyy

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.

LinusBorg avatar May 04 '18 15:05 LinusBorg

@yongbingz Do you solve it? I'm having this problem too...

yayocn avatar Apr 08 '19 06:04 yayocn

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,
          }
        },
        ....
      },
    ]
  }
}

Simsteve7 avatar Feb 14 '20 14:02 Simsteve7