使用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';
},
应该不是 vue 的问题,这个报错是在命令行还是
Developer Tools
里的?如果是后者是不是你装了什么浏览器插件。