vconsole-webpack-plugin icon indicating copy to clipboard operation
vconsole-webpack-plugin copied to clipboard

ios 10.2 会导致白屏

Open linxiaobiao opened this issue 3 years ago • 3 comments

vue-cli3 vue.config.js:

configureWebpack: config => {

    const tmp = {
      plugins: []
    }

    // 引入vconsole
    tmp.plugins.push(new VConsolePlugin({ enable: true }))

    return tmp
  },

在ios10.2中发现白屏

linxiaobiao avatar Mar 24 '21 11:03 linxiaobiao

定位到走到new vconsole 会直接报TypeError: Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a Symbol.iterator method,建议先加个try catch 作为兜底

linxiaobiao avatar Mar 25 '21 02:03 linxiaobiao

非常感谢

diamont1001 avatar Mar 27 '21 18:03 diamont1001

似乎是vconsole导致的, https://github.com/Tencent/vConsole/releases/tag/v3.14.4

plainnany avatar Apr 01 '22 07:04 plainnany

#102

diamont1001 avatar Jun 16 '23 04:06 diamont1001