失败构建Shopify主题应用程序扩展
我正在尝试使用CLI 3.0构建主题应用程序扩展名,我设法在应用程序上创建扩展名,但是我有2个基本问题:
- 每当我将JS文件添加到资产文件夹或液体文件中时,失败,即使文件为空(如果我删除文件,则构建也通过) - 这是运行
npm run build build
时遇到的错误
命令因退出代码1:捆绑exec exec-check/users/omerdotan/projects/shopify-omer-test-app-2/extensions/extensions/omer-theme-theme-extension-testension-test-2 -c:them_app_extension
- app不显示应用程序在主题上 - 我将应用程序附加到商店,并启用了主题扩展程序的开发人员预览,但它没有显示可用的应用程序(对于主题设置和块上的两个应用程序嵌入)
I'm trying to build a theme app extension using CLI 3.0, I managed to create the extension on my app but I have 2 basic issues:
- Whenever I add a js file to the assets folder or a liquid file to the blocks folder the build fails, even if the file is empty (build passes if I remove the file) - this is the error I get when running
npm run build
Command failed with exit code 1: bundle exec theme-check /Users/omerdotan/projects/shopify-omer-test-app-2/extensions/omer-theme-extension-test-2 -C :theme_app_extension
- The app doesn't appear on the theme - I attached the app to the store and enabled the developer preview for the theme extension,but it show no apps available (for both App embeds on theme settings and blocks)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我遇到了类似的问题。
我的解决方案:
nano〜/.zshrc
RBENV Global 3.1.2 < /code>
gem install bundler
npm运行部署
I was running into similar issues.
My solution:
~/.zshrc
file usingnano ~/.zshrc
rbenv global 3.1.2
gem install bundler
npm run deploy