vue-cli安装后运行的一个错误

使用
vue init webpack
安装成功了但是运行后有个报错不知道怎么回事,虽然不影响使用
Uncaught SyntaxError: Unexpected token return detector.js:234
但是看着很难受
detector.js 229 - 235

'Drupal8': function() {
        // Do not JS test if Drupal was already detected.
        if (_apps.Drupal8 !== undefined || _apps.Drupal !== undefined) return;
        // To ensure that the D8 logo is used, we must execute test here.
        // This way it doesn't test the normal "Drupal" one.
        return 'Drupal' in window && Drupal.throwError !== undefined return '8';
    },
阅读 1.9k
1 个回答

应该不是 vue 的问题,这个报错是在命令行还是 Developer Tools 里的?如果是后者是不是你装了什么浏览器插件。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题