Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Theme app extensions push got error if number of files from "assets" folder greater than 19 (files)

Solved

Theme app extensions push got error if number of files from "assets" folder greater than 19 (files)

FlashSearch
Shopify Partner
10 0 9

Hi everyone!

 

I got an error from the push command if the number of files from the "assets" folder greater than 19 (files). But if the number of files is less than or equal to 19(files), it works like a charm.

 

I'm using the latest version of Shopify-CLI: 2.13.0

 

Here is the trace error after executing the command below: 

 

 

SHOPIFY_CLI_STACKTRACE=1 shopify extension push

 

 

 

 

 

┏━━ Pushing your extension to Shopify ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
┃ Pushing code to Shopify…
┃ ✗ An unexpected error occurred on Shopify.
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ (78.18s) ━━
✗ An unexpected error occured.
        To submit an issue include the stack trace.

? Send an anonymized error report to Shopify? (You chose: Yes, send)
/opt/homebrew/Cellar/shopify-cli/2.13.0/gems/shopify-cli-2.13.0/lib/project_types/extension/tasks/update_draft.rb:21:in `call': undefined method `dig' for nil:NilClass (NoMethodError)                                       
        from /opt/homebrew/Cellar/shopify-cli/2.13.0/gems/shopify-cli-2.13.0/lib/shopify_cli/task.rb:8:in `call'
        from /opt/homebrew/Cellar/shopify-cli/2.13.0/gems/shopify-cli-2.13.0/lib/project_types/extension/commands/push.rb:99:in `block in update_draft'
        from /opt/homebrew/Cellar/shopify-cli/2.13.0/gems/shopify-cli-2.13.0/lib/project_types/extension/commands/push.rb:94:in `with_waiting_text'
        from /opt/homebrew/Cellar/shopify-cli/2.13.0/gems/shopify-cli-2.13.0/lib/project_types/extension/commands/push.rb:98:in `update_draft'
        from /opt/homebrew/Cellar/shopify-cli/2.13.0/gems/shopify-cli-2.13.0/lib/project_types/extension/commands/push.rb:38:in `block in call'
        from /opt/homebrew/Cellar/shopify-cli/2.13.0/gems/shopify-cli-2.13.0/vendor/deps/cli-ui/lib/cli/ui/frame.rb:103:in `open'
        from /opt/homebrew/Cellar/shopify-cli/2.13.0/gems/shopify-cli-2.13.0/lib/project_types/extension/commands/push.rb:37:in `call'
        from /opt/homebrew/Cellar/shopify-cli/2.13.0/gems/shopify-cli-2.13.0/lib/shopify_cli/command/sub_command.rb:16:in `call'
        from /opt/homebrew/Cellar/shopify-cli/2.13.0/gems/shopify-cli-2.13.0/lib/shopify_cli/command.rb:27:in `call'
        from /opt/homebrew/Cellar/shopify-cli/2.13.0/gems/shopify-cli-2.13.0/lib/shopify_cli/core/executor.rb:17:in `block (2 levels) in call'
        from /opt/homebrew/Cellar/shopify-cli/2.13.0/gems/shopify-cli-2.13.0/vendor/deps/cli-kit/lib/cli/kit/executor.rb:37:in `block (2 levels) in with_logging'
        from /opt/homebrew/Cellar/shopify-cli/2.13.0/gems/shopify-cli-2.13.0/vendor/deps/cli-ui/lib/cli/ui/stdout_router.rb:169:in `with_id'
        from /opt/homebrew/Cellar/shopify-cli/2.13.0/gems/shopify-cli-2.13.0/vendor/deps/cli-kit/lib/cli/kit/executor.rb:36:in `block in with_logging'
        from /opt/homebrew/Cellar/shopify-cli/2.13.0/gems/shopify-cli-2.13.0/vendor/deps/cli-ui/lib/cli/ui.rb:176:in `log_output_to'
        from /opt/homebrew/Cellar/shopify-cli/2.13.0/gems/shopify-cli-2.13.0/vendor/deps/cli-kit/lib/cli/kit/executor.rb:35:in `with_logging'
        from /opt/homebrew/Cellar/shopify-cli/2.13.0/gems/shopify-cli-2.13.0/lib/shopify_cli/core/executor.rb:16:in `block in call'
        from /opt/homebrew/Cellar/shopify-cli/2.13.0/gems/shopify-cli-2.13.0/vendor/deps/cli-kit/lib/cli/kit/executor.rb:45:in `block (2 levels) in with_traps'
        from /opt/homebrew/Cellar/shopify-cli/2.13.0/gems/shopify-cli-2.13.0/vendor/deps/cli-kit/lib/cli/kit/executor.rb:55:in `twrap'
        from /opt/homebrew/Cellar/shopify-cli/2.13.0/gems/shopify-cli-2.13.0/vendor/deps/cli-kit/lib/cli/kit/executor.rb:44:in `block in with_traps'
        from /opt/homebrew/Cellar/shopify-cli/2.13.0/gems/shopify-cli-2.13.0/vendor/deps/cli-kit/lib/cli/kit/executor.rb:55:in `twrap'
        from /opt/homebrew/Cellar/shopify-cli/2.13.0/gems/shopify-cli-2.13.0/vendor/deps/cli-kit/lib/cli/kit/executor.rb:43:in `with_traps'
        from /opt/homebrew/Cellar/shopify-cli/2.13.0/gems/shopify-cli-2.13.0/lib/shopify_cli/core/executor.rb:15:in `call'
        from /opt/homebrew/Cellar/shopify-cli/2.13.0/gems/shopify-cli-2.13.0/lib/shopify_cli/core/entry_point.rb:24:in `block in call'
        from /opt/homebrew/Cellar/shopify-cli/2.13.0/gems/shopify-cli-2.13.0/lib/shopify_cli/core/monorail.rb:30:in `log'
        from /opt/homebrew/Cellar/shopify-cli/2.13.0/gems/shopify-cli-2.13.0/lib/shopify_cli/core/entry_point.rb:23:in `call'
        from /opt/homebrew/Cellar/shopify-cli/2.13.0/gems/shopify-cli-2.13.0/bin/shopify:50:in `block (2 levels) in <top (required)>'
        from /opt/homebrew/Cellar/shopify-cli/2.13.0/gems/shopify-cli-2.13.0/vendor/deps/cli-kit/lib/cli/kit/error_handler.rb:75:in `handle_abort'
        from /opt/homebrew/Cellar/shopify-cli/2.13.0/gems/shopify-cli-2.13.0/vendor/deps/cli-kit/lib/cli/kit/error_handler.rb:21:in `call'
        from /opt/homebrew/Cellar/shopify-cli/2.13.0/gems/shopify-cli-2.13.0/bin/shopify:49:in `block in <top (required)>'
        from /opt/homebrew/Cellar/shopify-cli/2.13.0/gems/shopify-cli-2.13.0/bin/shopify:59:in `<top (required)>'
        from /opt/homebrew/bin/shopify:7:in `load'
        from /opt/homebrew/bin/shopify:7:in `<main>'

 

 

 

Here is my files information from the "assets" folder:

 

 

  File                                    Size                             Gzipped

  dist/js/chunk-vendors.7a6a0315.js       522.68 KiB                       165.51 KiB
  dist/js/chunk-6247f500.f90f25f6.js      379.33 KiB                       91.89 KiB
  dist/flashsearch-settings.js            277.03 KiB                       41.50 KiB
  dist/js/app.0b2e338b.js                 160.05 KiB                       36.08 KiB
  dist/js/chunk-94f817b6.233b4dec.js      145.63 KiB                       44.86 KiB
  dist/js/chunk-f09b4fc6.c5a5a39d.js      45.87 KiB                        12.94 KiB
  dist/js/chunk-52bae0bf.bcd7712f.js      45.05 KiB                        12.61 KiB
  dist/js/chunk-47be635e.4a776b35.js      38.65 KiB                        6.32 KiB
  dist/js/chunk-024febe4.b4264989.js      26.81 KiB                        6.81 KiB
  dist/js/chunk-1f89a631.8418ec8b.js      22.60 KiB                        6.61 KiB
  dist/js/chunk-2fd5baa1.a64efa6f.js      14.01 KiB                        3.66 KiB
  dist/js/chunk-4d2348aa.676dee8c.js      9.01 KiB                         2.89 KiB
  dist/js/chunk-0139ebf8.52cc9745.js      6.99 KiB                         2.54 KiB
  dist/js/chunk-77cac75c.27c2562a.js      6.50 KiB                         2.26 KiB
  dist/js/chunk-3e2188a5.7c331c40.js      2.79 KiB                         1.22 KiB
  dist/js/chunk-123753ff.27cd661a.js      2.57 KiB                         0.60 KiB
  dist/js/chunk-151d09e2.11216ab5.js      2.32 KiB                         1.00 KiB
  dist/js/chunk-2d0ba8aa.ed493c12.js      0.88 KiB                         0.53 KiB
  dist/js/chunk-2d21af67.8cd602e4.js      0.66 KiB                         0.25 KiB
  dist/css/chunk-123753ff.1007c059.css    331.66 KiB                       39.85 KiB
  dist/css/chunk-1f89a631.a9b837aa.css    7.26 KiB                         1.92 KiB

 

 

 

I hope for some helps from the community 😄 

Thanks in advance!!

 

Flash Search - AI-powered Search & Filter, Merchandising, Analytics, Support OS 2.
Accepted Solution (1)
chrisatlee
Shopify Staff
4 2 4

This is an accepted solution.

We believe this issue is now fixed. Please let us know if you see it again!

To learn more visit the Shopify Help Center or the Community Blog.

View solution in original post

Replies 4 (4)

chrisatlee
Shopify Staff
4 2 4

Hello, thank you for the report!

 

This issue is being tracked in GitHub here - https://github.com/Shopify/shopify-cli/issues/1698

 

Unfortunately we don't have a timeline for a fix, but we are looking into the issue.

To learn more visit the Shopify Help Center or the Community Blog.

FlashSearch
Shopify Partner
10 0 9

Oh, thank you so much for your fast reply @chrisatlee , I hope the Shopify CLI team will fix that soon :D. It is very important for our app for improving performance :D. I hope it will be fixed soon 😄 

Flash Search - AI-powered Search & Filter, Merchandising, Analytics, Support OS 2.
chrisatlee
Shopify Staff
4 2 4

This is an accepted solution.

We believe this issue is now fixed. Please let us know if you see it again!

To learn more visit the Shopify Help Center or the Community Blog.

FlashSearch
Shopify Partner
10 0 9

Thanks @chrisatlee , Now my issues was fixed 😄

Flash Search - AI-powered Search & Filter, Merchandising, Analytics, Support OS 2.