[09:39:48] 'aurelia-build-translations' errored after 30 ms
[09:39:48] SyntaxError: Unexpected token , in JSON at position 1497
at JSON.parse (<anonymous>)
at processTranslationFile (c:\wamp64\www\desygner-business\builder\shared\translations.js:18:28)
at Function._.each._.forEach (c:\wamp64\www\desygner-business\builder\node_modules\underscore\underscore.js:186:9)
at module.exports (c:\wamp64\www\desygner-business\builder\shared\translations.js:12:5)
at Gulp.<anonymous> (c:\wamp64\www\desygner-business\builder\aureliabuild\tasks\build.js:45:3)
at module.exports (c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\orchestrator\lib\runTask.js:34:7)
at Gulp.Orchestrator._runTask (c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\orchestrator\index.js:273:3)
at Gulp.Orchestrator._runStep (c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\orchestrator\index.js:214:10)
at Gulp.Orchestrator.start (c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\orchestrator\index.js:134:8)
at runNextSet (c:\wamp64\www\desygner-business\builder\node_modules\run-sequence\index.js:86:16)
at Gulp.onTaskEnd (c:\wamp64\www\desygner-business\builder\node_modules\run-sequence\index.js:75:5)
at emitOne (events.js:121:20)
at Gulp.emit (events.js:211:7)
at Gulp.Orchestrator._emitTaskDone (c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\orchestrator\index.js:264:8)
at c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\orchestrator\index.js:275:23
at finish (c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\orchestrator\lib\runTask.js:21:8)
at c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\orchestrator\lib\runTask.js:52:4
at f (c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\once\once.js:17:25)
at DestroyableTransform.onend (c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\end-of-stream\index.js:31:18)
at emitNone (events.js:111:20)
at DestroyableTransform.emit (events.js:208:7)
at c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\vinyl-fs\node_modules\readable-stream\lib\_stream_readable.js:965:16
[09:39:48] 'build' errored after 11 s
[09:39:48] SyntaxError in plugin 'run-sequence(aurelia-build-translations)'
Message:
Unexpected token , in JSON at position 1497
Stack:
SyntaxError: Unexpected token , in JSON at position 1497
at JSON.parse (<anonymous>)
at processTranslationFile (c:\wamp64\www\desygner-business\builder\shared\translations.js:18:28)
at Function._.each._.forEach (c:\wamp64\www\desygner-business\builder\node_modules\underscore\underscore.js:186:9)
at module.exports (c:\wamp64\www\desygner-business\builder\shared\translations.js:12:5)
at Gulp.<anonymous> (c:\wamp64\www\desygner-business\builder\aureliabuild\tasks\build.js:45:3)
at module.exports (c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\orchestrator\lib\runTask.js:34:7)
at Gulp.Orchestrator._runTask (c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\orchestrator\index.js:273:3)
at Gulp.Orchestrator._runStep (c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\orchestrator\index.js:214:10)
at Gulp.Orchestrator.start (c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\orchestrator\index.js:134:8)
at runNextSet (c:\wamp64\www\desygner-business\builder\node_modules\run-sequence\index.js:86:16)
at Gulp.onTaskEnd (c:\wamp64\www\desygner-business\builder\node_modules\run-sequence\index.js:75:5)
at emitOne (events.js:121:20)
at Gulp.emit (events.js:211:7)
at Gulp.Orchestrator._emitTaskDone (c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\orchestrator\index.js:264:8)
at c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\orchestrator\index.js:275:23
at finish (c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\orchestrator\lib\runTask.js:21:8)
at c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\orchestrator\lib\runTask.js:52:4
at f (c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\once\once.js:17:25)
at DestroyableTransform.onend (c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\end-of-stream\index.js:31:18)
at emitNone (events.js:111:20)
at DestroyableTransform.emit (events.js:208:7)
at c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\vinyl-fs\node_modules\readable-stream\lib\_stream_readable.js:965:16
[09:39:48] 'aurelia-build' errored after 171 ms
[09:39:48] SyntaxError in plugin 'run-sequence(build)'
Message:
Unexpected token , in JSON at position 1497
Stack:
SyntaxError: Unexpected token , in JSON at position 1497
at JSON.parse (<anonymous>)
at processTranslationFile (c:\wamp64\www\desygner-business\builder\shared\translations.js:18:28)
at Function._.each._.forEach (c:\wamp64\www\desygner-business\builder\node_modules\underscore\underscore.js:186:9)
at module.exports (c:\wamp64\www\desygner-business\builder\shared\translations.js:12:5)
at Gulp.<anonymous> (c:\wamp64\www\desygner-business\builder\aureliabuild\tasks\build.js:45:3)
at module.exports (c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\orchestrator\lib\runTask.js:34:7)
at Gulp.Orchestrator._runTask (c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\orchestrator\index.js:273:3)
at Gulp.Orchestrator._runStep (c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\orchestrator\index.js:214:10)
at Gulp.Orchestrator.start (c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\orchestrator\index.js:134:8)
at runNextSet (c:\wamp64\www\desygner-business\builder\node_modules\run-sequence\index.js:86:16)
at Gulp.onTaskEnd (c:\wamp64\www\desygner-business\builder\node_modules\run-sequence\index.js:75:5)
at emitOne (events.js:121:20)
at Gulp.emit (events.js:211:7)
at Gulp.Orchestrator._emitTaskDone (c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\orchestrator\index.js:264:8)
at c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\orchestrator\index.js:275:23
at finish (c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\orchestrator\lib\runTask.js:21:8)
at c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\orchestrator\lib\runTask.js:52:4
at f (c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\once\once.js:17:25)
at DestroyableTransform.onend (c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\end-of-stream\index.js:31:18)
at emitNone (events.js:111:20)
at DestroyableTransform.emit (events.js:208:7)
at c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\vinyl-fs\node_modules\readable-stream\lib\_stream_readable.js:965:16
[09:39:48] 'aurelia-build' errored after 172 ms
[09:39:48] SyntaxError in plugin 'run-sequence(aurelia-build-translations)'
Message:
Unexpected token , in JSON at position 1497
Stack:
SyntaxError: Unexpected token , in JSON at position 1497
at JSON.parse (<anonymous>)
at processTranslationFile (c:\wamp64\www\desygner-business\builder\shared\translations.js:18:28)
at Function._.each._.forEach (c:\wamp64\www\desygner-business\builder\node_modules\underscore\underscore.js:186:9)
at module.exports (c:\wamp64\www\desygner-business\builder\shared\translations.js:12:5)
at Gulp.<anonymous> (c:\wamp64\www\desygner-business\builder\aureliabuild\tasks\build.js:45:3)
at module.exports (c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\orchestrator\lib\runTask.js:34:7)
at Gulp.Orchestrator._runTask (c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\orchestrator\index.js:273:3)
at Gulp.Orchestrator._runStep (c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\orchestrator\index.js:214:10)
at Gulp.Orchestrator.start (c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\orchestrator\index.js:134:8)
at runNextSet (c:\wamp64\www\desygner-business\builder\node_modules\run-sequence\index.js:86:16)
at Gulp.onTaskEnd (c:\wamp64\www\desygner-business\builder\node_modules\run-sequence\index.js:75:5)
at emitOne (events.js:121:20)
at Gulp.emit (events.js:211:7)
at Gulp.Orchestrator._emitTaskDone (c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\orchestrator\index.js:264:8)
at c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\orchestrator\index.js:275:23
at finish (c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\orchestrator\lib\runTask.js:21:8)
at c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\orchestrator\lib\runTask.js:52:4
at f (c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\once\once.js:17:25)
at DestroyableTransform.onend (c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\end-of-stream\index.js:31:18)
at emitNone (events.js:111:20)
at DestroyableTransform.emit (events.js:208:7)
at c:\wamp64\www\desygner-business\builder\node_modules\gulp\node_modules\vinyl-fs\node_modules\readable-stream\lib\_stream_readable.js:965:16
有关“ aurelia-build-translations”的一些内容,
var setting = fs.readFileSync('./ config /'+ filename,'utf8');
var settings = JSON.parse(JSON.stringify(baseTranslationFiles))
SyntaxError:意外令牌,位于JSON中的位置1497
我不知道哪个文件有错误,我已经检查了所有jsons文件,不幸的是我找不到文件上的任何错误,请您帮我吗?
答案 0 :(得分:0)
实际上没有要查看的JSON很难在这里进行具体的调用,但是当我看到类似的错误之前,它通常下降到JSON中的另一个节点的末尾带有逗号“,”或其他< / p>
您是否尝试过验证文件-jsonlint.com之类的东西很擅长向您显示错误位置