Please confirm that you have:
In which of these areas are you experiencing a problem?
Extension
Expected behavior
npm run dev should push assets but did not
Actual behavior
npm run dev did not push assets and there were NO ERRORS indicating an issue
Verbose output
I found the issue, verbose output won't help
This is the output of npm run dev when I have a test.txt in my assets folder.
redacted (Theme App Extension)
Follow the dev doc instructions by deploying your work as a draft
2023-06-21 06:05:56 │ extensions │
2023-06-21 06:05:56 │ extensions │ --------- Pushing theme files to App Ext. Host (redacted) (#redacted) on redacted.myshopify.com
2023-06-21 06:05:56 │ extensions │ Pushing theme... 0%
2023-06-21 06:05:59 │ extensions │ Pushing theme... 40%
2023-06-21 06:06:01 │ extensions │ Pushing theme... 60%
2023-06-21 06:06:01 │ extensions │ Pushing theme... 80%
2023-06-21 06:06:01 │ extensions │ Pushing theme... 100%
2023-06-21 06:06:01 │ extensions │ ------------------
2023-06-21 06:06:02 │ extensions │
2023-06-21 06:06:02 │ extensions │ --------- Viewing extension…
2023-06-21 06:06:02 │ extensions │ Enable your theme app extension:
2023-06-21 06:06:02 │ extensions │ https://partners.shopify.com/redacted/apps/redacted/extensions/theme_app_extension/redacted
2023-06-21 06:06:02 │ extensions │
2023-06-21 06:06:02 │ extensions │ Setup your theme app extension in the host theme:
2023-06-21 06:06:02 │ extensions │ https://redacted.myshopify.com/admin/themes/redacted/editor
2023-06-21 06:06:02 │ extensions │
2023-06-21 06:06:02 │ extensions │ Preview your theme app extension:
2023-06-21 06:06:02 │ extensions │ http://127.0.0.1:9292
2023-06-21 06:06:02 │ extensions │ ------------------
If test.txt was removed, these additional lines would show
2023-06-21 06:13:20 │ extensions │ Pushed » 'redacted' to a draft
2023-06-21 06:13:20 │ extensions │ - blocks/redacted.liquid
2023-06-21 06:13:20 │ extensions │ - locales/en.default.json
2023-06-21 06:13:20 │ extensions │ - assets/redacted.js
Since there was an issue, CLI should report it rather than keep quiet
Reproduction steps
- add a
test.txt to the assets folder
- run
npm run dev
- since only certain file extensions are accepted, shopify CLI should throw/display some errors
- it was only when I ran
npm run deploy that an error was thrown
Operating System
Ubuntu 22.04
Shopify CLI version (check your project's package.json if you're not sure)
3.46.5
Shell
bash
Node version (run node -v if you're not sure)
v20.2.0
What language and version are you using in your application?
PHP
Please confirm that you have:
In which of these areas are you experiencing a problem?
Extension
Expected behavior
npm run devshould push assets but did notActual behavior
npm run devdid not push assets and there were NO ERRORS indicating an issueVerbose output
I found the issue, verbose output won't help
This is the output of
npm run devwhen I have atest.txtin my assets folder.If
test.txtwas removed, these additional lines would showSince there was an issue, CLI should report it rather than keep quiet
Reproduction steps
test.txtto the assets foldernpm run devnpm run deploythat an error was thrownOperating System
Ubuntu 22.04
Shopify CLI version (check your project's
package.jsonif you're not sure)3.46.5
Shell
bash
Node version (run
node -vif you're not sure)v20.2.0
What language and version are you using in your application?
PHP