背景资料:
Aurelia CLI
npm版本3.10.3
节点版本6.7.0
项目是由我创建并最初开发的。签入客户的git存储库。当我被分配到其他任务时,我的几个同事继续从事该项目。我现在回来研究这个项目,我做的第一件事是git pull
。在更新源文件的本地副本等之后,我运行了au build
,这产生了以下错误:
commonJs.convert: COULD NOT CONVERT:
C:/repos/xxxxxx/FrontEnd/src/selectedcustomer.js, so skipping it.
Error was: Error: Line 1: Unexpected token
{ uid: 8,
name: 'writeBundles',
branch: false,
error: { Error: Parse error using esprima for file: C:/repos/xxxxxx/FrontEnd/src/selectedcustomer.js
Error: Line 1: Unexpected token
at Object.context.load (C:\repos\xxxxxx\FrontEnd\node_modules\aurelia-cli\lib\build\amodrotrace\lib\loade\Loader.js:379:19)
at Object.load (eval at <anonymous> (C:\repos\xxxxxx\FrontEnd\node_modules\aurelia-cli\lib\build\amodro-trace\lib\loader\Loader.js:1:0),<anonymous>:832:29)
at Object.fetch (eval at <anonymous> (C:\repos\xxxxxx\FrontEnd\node_modules\aurelia-cli\lib\build\amodro-trace\lib\loader\Loader.js:1:0), <anonymous>:822:66)
at Object.check (eval at <anonymous> (C:\repos\xxxxxx\FrontEnd\node_modules\aurelia-cli\lib\build\amodro-trace\lib\loader\Loader.js:1:0), <anonymous>:854:30)
at Object.enable (eval at <anonymous> (C:\repos\xxxxxx\FrontEnd\node_modules\aurelia-cli\lib\build\amodro-trace\lib\loader\Loader.js:1:0), <anonymous>:1173:22)
at Object.enable (eval at <anonymous> (C:\repos\xxxxxx\FrontEnd\node_modules\aurelia-cli\lib\build\amodro-trace\lib\loader\Loader.js:1:0), <anonymous>:1554:39)
at Object.context.enable (C:\repos\xxxxxx\FrontEnd\node_modules\aurelia-cli\lib\build\amodro-trace\lib\loader\Loader.js:289:24)
at Object.eval (eval at <anonymous> (C:\repos\xxxxxx\FrontEnd\node_modules\aurelia-cli\lib\build\amodro-trace\lib\loader\Loader.js:1:0),<anonymous>:1158:33)
at eval (eval at <anonymous> (C:\repos\xxxxxx\FrontEnd\node_modules\aurelia-cli\lib\build\amodro-trace\lib\loader\Loader.js:1:0), <anonymous>:134:23)
at each (eval at <anonymous> (C:\repos\xxxxxx\FrontEnd\node_modules\aurelia-cli\lib\build\amodro-trace\lib\loader\Loader.js:1:0), <anonymous>:59:31)
moduleTree: [ 'app' ],
fileName: 'C:/repos/xxxxxx/FrontEnd/src/app.js' },
duration: [ 0, 514590053 ],
time: 1486381456095
}
{ uid: 0,
name: '<series>',
branch: true,
error: { Error: Parse error using esprima for file: C:/repos/xxxxxx/FrontEnd/src/selectedcustomer.js
Error: Line 1: Unexpected token
at Object.context.load (C:\repos\xxxxxx\FrontEnd\node_modules\aurelia-cli\lib\build\amodro-trace\lib\loader\Loader.js:379:19)
at Object.load (eval at <anonymous> (C:\repos\xxxxxx\FrontEnd\node_modules\aurelia-cli\lib\build\amodro-trace\lib\loader\Loader.js:1:0), <anonymous>:832:29)
at Object.fetch (eval at <anonymous> (C:\repos\xxxxxx\FrontEnd\node_modules\aurelia-cli\lib\build\amodro-trace\lib\loader\Loader.js:1:0), <anonymous>:822:66)
at Object.check (eval at <anonymous> (C:\repos\xxxxxx\FrontEnd\node_modules\aurelia-cli\lib\build\amodro-trace\lib\loader\Loader.js:1:0), <anonymous>:854:30)
at Object.enable (eval at <anonymous> (C:\repos\xxxxxx\FrontEnd\node_modules\aurelia-cli\lib\build\amodro-trace\lib\loader\Loader.js:1:0), <anonymous>:1173:22)
at Object.enable (eval at <anonymous> (C:\repos\xxxxxx\FrontEnd\node_modules\aurelia-cli\lib\build\amodro-trace\lib\loader\Loader.js:1:0), <anonymous>:1554:39)
at Object.context.enable (C:\repos\xxxxxx\FrontEnd\node_modules\aurelia-cli\lib\build\amodro-trace\lib\loader\Loader.js:289:24)
at Object.eval (eval at <anonymous> (C:\repos\xxxxxx\FrontEnd\node_modules\aurelia-cli\lib\build\amodro-trace\lib\loader\Loader.js:1:0), <anonymous>:1158:33)
at eval (eval at <anonymous> (C:\repos\xxxxxx\FrontEnd\node_modules\aurelia-cli\lib\build\amodro-trace\lib\loader\Loader.js:1:0), <anonymous>:134:23)
at each (eval at <anonymous> (C:\repos\xxxxxx\FrontEnd\node_modules\aurelia-cli\lib\build\amodro-trace\lib\loader\Loader.js:1:0), <anonymous>:59:31)
moduleTree: [ 'app' ],
fileName: 'C:/repos/xxxxxx/FrontEnd/src/app.js' },
duration: [ 11, 848277505 ],
time: 1486381456113 }
{ Error: Parse error using esprima for file: C:/repos/xxxxxx/FrontEnd/src/selectedcustomer.js
Error: Line 1: Unexpected token
at Object.context.load (C:\repos\xxxxxx\FrontEnd\node_modules\aurelia-cli\lib\build\amodro-trace\lib\loader\Loader.js:379:19)
at Object.load (eval at <anonymous> (C:\repos\xxxxxx\FrontEnd\node_modules\aurelia-cli\lib\build\amodro-trace\lib\loader\Loader.js:1:0), <anonymous>:832:29)
at Object.fetch (eval at <anonymous> (C:\repos\xxxxxx\FrontEnd\node_modules\aurelia-cli\lib\build\amodro-trace\lib\loader\Loader.js:1:0), <anonymous>:822:66)
at Object.check (eval at <anonymous> (C:\repos\xxxxxx\FrontEnd\node_modules\aurelia-cli\lib\build\amodro-trace\lib\loader\Loader.js:1:0), <anonymous>:854:30)
at Object.enable (eval at <anonymous> (C:\repos\xxxxxx\FrontEnd\node_modules\aurelia-cli\lib\build\amodro-trace\lib\loader\Loader.js:1:0), <anonymous>:1173:22)
at Object.enable (eval at <anonymous> (C:\repos\xxxxxx\FrontEnd\node_modules\aurelia-cli\lib\build\amodro-trace\lib\loader\Loader.js:1:0), <anonymous>:1554:39)
at Object.context.enable (C:\repos\xxxxxx\FrontEnd\node_modules\aurelia-cli\lib\build\amodro-trace\lib\loader\Loader.js:289:24)
at Object.eval (eval at <anonymous> (C:\repos\xxxxxx\FrontEnd\node_modules\aurelia-cli\lib\build\amodro-trace\lib\loader\Loader.js:1:0), <anonymous>:1158:33)
at eval (eval at <anonymous> (C:\repos\xxxxxx\FrontEnd\node_modules\aurelia-cli\lib\build\amodro-trace\lib\loader\Loader.js:1:0), <anonymous>:134:23)
at each (eval at <anonymous> (C:\repos\xxxxxx\FrontEnd\node_modules\aurelia-cli\lib\build\amodro-trace\lib\loader\Loader.js:1:0),<anonymous>:59:31)
moduleTree: [ 'app' ],
fileName: 'C:/repos/xxxxxx/FrontEnd/src/app.js' }
那里有人知道是什么原因引起的吗?它建立在我的同事机器上,所以我真的不知道为什么我得到这个错误。此外,只要没有解决这个问题,我就无法开展项目工作,我的客户对此并不满意。
顺便说一下,我试过npm install
无济于事。
TIA
- norgie