vsCode启动调试报错

提问 0 1948
夏天
夏天 VIP3 2018-12-11
版本:renren-fast 2.1 开发环境:Chrome
vsCode启动调试报错,用npm run serve启动正常。想用vsCode调试的 Debugger listening on ws://127.0.0.1:22519/b1133404-a0dd-486a-b50d-7bb2a904ea0c For help, see: https://nodejs.org/en/docs/inspector SyntaxError: Unexpected identifier vm.js:79 at new Script (vm.js:79:7) at createScript (vm.js:251:10) at Object.runInThisContext (vm.js:303:10) at Module._compile (internal/modules/cjs/loader.js:656:28) at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10) at Module.load (internal/modules/cjs/loader.js:598:32) at tryModuleLoad (internal/modules/cjs/loader.js:537:12) at Function.Module._load (internal/modules/cjs/loader.js:529:3) at Function.Module.runMain (internal/modules/cjs/loader.js:741:12) at startup (internal/bootstrap/node.js:285:19) Debugger attached. d:\QZ\ideaWorkspace\renren\security-enterprise-2.1.0\security-enterprise-admin\src\main.js:1 (function (exports, require, module, __filename, __dirname) { import Vue from 'vue' ^^^ SyntaxError: Unexpected identifier at new Script (vm.js:79:7) at createScript (vm.js:251:10) at Object.runInThisContext (vm.js:303:10) at Module._compile (internal/modules/cjs/loader.js:656:28) at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10) at Module.load (internal/modules/cjs/loader.js:598:32) at tryModuleLoad (internal/modules/cjs/loader.js:537:12) at Function.Module._load (internal/modules/cjs/loader.js:529:3) at Function.Module.runMain (internal/modules/cjs/loader.js:741:12) at startup (internal/bootstrap/node.js:285:19) Waiting for the debugger to disconnect... img[//cdn.renren.io/dac9f201812111510312342.png]
回帖
  • 消灭零回复