Stencil Paper.loadTranslations错误

时间:2016-07-24 21:20:59

标签: bigcommerce

尝试运行Stencil时,我收到以下错误。

Debug: internal, implementation, error
TypeError: Uncaught error: self.assembler.getTranslations is not a function
at Paper.loadTranslations (/user/.nvm/versions/node/v4.4.0/lib/node_modules/@bigcommerce/stencil-cli/node_modules/@bigcommerce/stencil-paper/index.js:137:20)
at /user/.nvm/versions/node/v4.4.0/lib/node_modules/@bigcommerce/stencil-cli/node_modules/@bigcommerce/stencil-paper/index.js:62:18
at /user/.nvm/versions/node/v4.4.0/lib/node_modules/@bigcommerce/stencil-cli/node_modules/async/lib/async.js:718:13
at async.forEachOf.async.eachOf (/user/.nvm/versions/node/v4.4.0/lib/node_modules/@bigcommerce/stencil-cli/node_modules/async/lib/async.js:233:13)
at _parallel (/user/.nvm/versions/node/v4.4.0/lib/node_modules/@bigcommerce/stencil-cli/node_modules/async/lib/async.js:717:9)
at Object.async.parallel (/user/.nvm/versions/node/v4.4.0/lib/node_modules/@bigcommerce/stencil-cli/node_modules/async/lib/async.js:731:9)
at Paper.loadTheme (/user/.nvm/versions/node/v4.4.0/lib/node_modules/@bigcommerce/stencil-cli/node_modules/@bigcommerce/stencil-paper/index.js:60:11)
at respond (/user/.nvm/versions/node/v4.4.0/lib/node_modules/@bigcommerce/stencil-cli/server/plugins/renderer/responses/pencil-response.js:29:15)
at /user/.nvm/versions/node/v4.4.0/lib/node_modules/@bigcommerce/stencil-cli/server/plugins/renderer/renderer.module.js:49:18
at /user/.nvm/versions/node/v4.4.0/lib/node_modules/@bigcommerce/stencil-cli/server/plugins/renderer/renderer.module.js:246:24

我的设置如下:

MacOS 10.11.5

NVM 0.31.0

Node 4.4.0

Stencil 1.3.5

首先卸载NVM并在https://stencil.bigcommerce.com/docs/installing-and-launching-stencil-1端到端遵循指南,我尝试全新安装NVM和Node。这还没有解决错误,我无法运行模板。

是否有其他人遇到此问题或有解决方案?

1 个答案:

答案 0 :(得分:1)

如果您下载最新版本的Stencil(刚刚在过去几个小时内部署),您应该对此进行修复。这是之前(最近)发布的一个问题。

npm install -g bigcommerce/stencil-cli

应该提取更新。