stencil start
当我运行一段时间后,我一直在我的模板控制台中看到这个错误。有谁知道是什么原因造成的,或者是否有好的解决方案?
Debug: internal, implementation, error
SyntaxError: Unexpected token ' in JSON at position 63
at JSON.parse (<anonymous>)
at Object.internals.getResponse (C:\ProgramData\nvm\v12.0.0\node_modules\@bigcommerce\stencil-cli\server\plugins\renderer\renderer.module.js:125:16)
at processTicksAndRejections (internal/process/task_queues.js:88:5)
at async internals.implementation (C:\ProgramData\nvm\v12.0.0\node_modules\@bigcommerce\stencil-cli\server\plugins\renderer\renderer.module.js:40:20)
at async module.exports.internals.Manager.execute (C:\ProgramData\nvm\v12.0.0\node_modules\@bigcommerce\stencil-cli\node_modules\@hapi\hapi\lib\toolkit.js:45:28)
at async Object.internals.handler (C:\ProgramData\nvm\v12.0.0\node_modules\@bigcommerce\stencil-cli\node_modules\@hapi\hapi\lib\handler.js:46:20)
at async exports.execute (C:\ProgramData\nvm\v12.0.0\node_modules\@bigcommerce\stencil-cli\node_modules\@hapi\hapi\lib\handler.js:31:20)
at async Request._lifecycle (C:\ProgramData\nvm\v12.0.0\node_modules\@bigcommerce\stencil-cli\node_modules\@hapi\hapi\lib\request.js:312:32)
at async Request._execute (C:\ProgramData\nvm\v12.0.0\node_modules\@bigcommerce\stencil-cli\node_modules\@hapi\hapi\lib\request.js:221:9)
我正在使用 Windows 11 测试版,但当我在稳定的 Windows 10 上时,我已经看到了这一点,我们也在 Mac 系统上看到了它,所以我相信它与操作系统无关。
模具信息:
Node Version: v12.0.0
Stencil 3.2.0
我正在运行这些版本的 atom 来编辑我的代码:
Atom : 1.58.0
Electron: 9.4.4
Chrome : 83.0.4103.122
Node : 12.14.1
让我知道其他信息是否会有所帮助。
这个问题现在有一个 Github 问题。见这里:https ://github.com/bigcommerce/stencil-cli/issues/752