我在嘗試轉換Aurelia項目並遇到問題。我安裝奧裏利亞-AUTH並在aurelia.json文件配置的: { "name": "aurelia-auth", "path": "../node_modules/aurelia-auth/src", "main": "aurelia-auth" }
ESPRIMA在Aurelia Aurelia-auth中出錯1
當我嘗試使用AU-CLI我得到這樣的一系列錯誤,運行此程序:
commonJs.convert: COULD NOT CONVERT: C:/Development/UCCSS/aurelia-v1- uccss/node_modules/aurelia-auth/src/aurelia-auth.js, so skipping it. Error was: Error: Line 1: Unexpected token { uid: 10, name: 'writeBundles', branch: false, error: { [Error: Parse error using esprima for file: C:/Development/UCCSS/aurelia-v1-uccss/node_modules/aurelia-auth/src/aurelia-auth.js Error: Line 1: Unexpected token] moduleTree: [ 'config/routerConfig' ], fileName: 'C:/Development/UCCSS/aurelia-v1-uccss/src/config/routerConfig.js' }, duration: [ 0, 925164337 ], time: 1470156183228 }
aurelia-auth是否有可能被Aurelia的最新版本破壞,或者是否有解決此問題的方法?
感謝,
羅斯