我正试图在试用商店设置模板。我有一个模板主题设置为默认,按照建议安装节点4.4.0,一切都很顺利。模具开始顺利。但是当我通过浏览器访问该网站时,我收到以下错误:
调试:内部,实现,错误 TypeError:未捕获错误:self.assembler.getTranslations不是函数 at Paper.loadTranslations(/Users/oliverharoun/.nvm/versions/node/v4.4.0/lib/node_modules/@bigcommerce/stencil-cli/node_modules/@bigcommerce/stencil-paper/index.js:137:20) at /Users/oliverharoun/.nvm/versions/node/v4.4.0/lib/node_modules/@bigcommerce/stencil-cli/node_modules/@bigcommerce/stencil-paper/index.js:62:18 at /Users/oliverharoun/.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(/Users/oliverharoun/.nvm/versions/node/v4.4.0/lib/node_modules/@bigcommerce/stencil-cli/node_modules/async/lib/async.js:233:13) at _parallel(/Users/oliverharoun/.nvm/versions/node/v4.4.0/lib/node_modules/@bigcommerce/stencil-cli/node_modules/async/lib/async.js:717:9) at Object.async.parallel(/Users/oliverharoun/.nvm/versions/node/v4.4.0/lib/node_modules/@bigcommerce/stencil-cli/node_modules/async/lib/async.js:731:9) 在Paper.loadTheme(/Users/oliverharoun/.nvm/versions/node/v4.4.0/lib/node_modules/@bigcommerce/stencil-cli/node_modules/@bigcommerce/stencil-paper/index.js:60:11) 作出回应(/Users/oliverharoun/.nvm/versions/node/v4.4.0/lib/node_modules/@bigcommerce/stencil-cli/server/plugins/renderer/responses/pencil-response.js:29:15) at /Users/oliverharoun/.nvm/versions/node/v4.4.0/lib/node_modules/@bigcommerce/stencil-cli/server/plugins/renderer/renderer.module.js:49:18 at /Users/oliverharoun/.nvm/versions/node/v4.4.0/lib/node_modules/@bigcommerce/stencil-cli/server/plugins/renderer/renderer.module.js:246:24
答案 0 :(得分:0)
在Node 4.4.5中,一切正常,但我在过去遇到过这些错误。删除node_modules文件夹并运行npm i进行全新安装通常可以解决我的问题。如果问题仍然存在,您可能需要卸载global @ bigcommerce / stencil-cli软件包并重新安装。
答案 1 :(得分:0)
如果您下载最新版本的Stencil(刚刚在过去几个小时内部署),您应该对此进行修复。这是之前(最近)发布的一个问题。