Skip to content

[Bug]: npm run dev and build did not report errors #2210

@bilogic

Description

@bilogic

Please confirm that you have:

  • Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
  • Reproduced the issue in the latest CLI version.

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

  1. add a test.txt to the assets folder
  2. run npm run dev
  3. since only certain file extensions are accepted, shopify CLI should throw/display some errors
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions