Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shopify cli dev is so slowly #4508

Closed
2 tasks done
changeyoucant opened this issue Sep 23, 2024 · 8 comments
Closed
2 tasks done

shopify cli dev is so slowly #4508

changeyoucant opened this issue Sep 23, 2024 · 8 comments
Assignees
Labels
Area: @shopify/theme @shopify/theme package issues #gsd:40767 Fortify local development experience for Liquid themes State: Waiting for feedback Type: Bug Something isn't working

Comments

@changeyoucant
Copy link

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?

Theme

Expected behavior

shopify cli dev is so slowly

Actual behavior

i use shopify cli develop shopify theme,but when i refresh page.need 20s to refresh ..............!

Verbose output

....

Reproduction steps

Operating System

windows shopify cli

Shopify CLI version (check your project's package.json if you're not sure)

3.58.0

Shell

cmd

Node version (run node -v if you're not sure)

No response

What language and version are you using in your application?

No response

@changeyoucant changeyoucant added the Type: Bug Something isn't working label Sep 23, 2024
@amcaplan amcaplan added the Area: @shopify/theme @shopify/theme package issues label Sep 24, 2024
@GitYing
Copy link

GitYing commented Sep 26, 2024

I notice this issue only on windows try using wsl with unix maybe for a quick workaround

@changeyoucant
Copy link
Author

wsl with unix

yes only on windows , i will try it. thank you very much.

@karreiro
Copy link
Contributor

👋 Hey @changeyoucant,

Thank you for reporting. I've noticed you're running Shopify CLI 3.58.0. Could you please try updating it to the latest version?

One of the enhancements introduced in Shopify CLI 3.67 was related to the development server performance, so you should no longer face this issue there.

Thank you for reporting this!

@khdigital94
Copy link

👋 Hey @changeyoucant,

Thank you for reporting. I've noticed you're running Shopify CLI 3.58.0. Could you please try updating it to the latest version?

One of the enhancements introduced in Shopify CLI 3.67 was related to the development server performance, so you should no longer face this issue there.

Thank you for reporting this!

Having super slow performance as well using the latest version (and versions before) on OSX

@jamesmengo jamesmengo added moderate #gsd:40767 Fortify local development experience for Liquid themes labels Sep 26, 2024
@jamesmengo
Copy link
Contributor

@changeyoucant can you verify if this is persisting after upgrading to the new CLI - 3.67?

@khdigital94 That's interesting! 🤔

Could you specify which actions you notice slow performance in?
e.g. On initialization, When you reload the page, When you apply a change locally

Could you run the command with --verbose output and leave a comment here with the information from the issue template? That may help us investigate where the slowdown is coming from :)

Issue Template
In which of these areas are you experiencing a problem?

Expected behavior

Actual behavior

Verbose output

Reproduction steps

Operating System

Shopify CLI version (check your project's package.json if you're not sure)

Shell

Node version (run node -v if you're not sure)

What language and version are you using in your application?

@savchukoleksii
Copy link

Shopify CLI is using v3 of chokidar. Looks like a chokidar v4 resolves performance issues for Windows:
https://www.npmjs.com/package/chokidar

@karreiro
Copy link
Contributor

👋 Hey folks,

I've tried this in a Windows instance without facing the reported slowness.

Could you please share your --verbose logs when you face the slowness? While updating chokidar is a neat idea, I'd like to validate that we're solving the root cause.

Thank you for reporting this!

@karreiro
Copy link
Contributor

👋 Hey folks,

Thank you for reporting.

We've tried to reproduce this problem on Windows, and as you may notice below, we couldn't reproduce any performance degradation there. So, we're closing this issue for now.

However, please feel free to re-open this issue or create a new one if you're still facing this problem. Please include the --verbose logs in the new report, so the team can understand the scenario you're facing and act on the fix for that.

Image

Thanks again for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: @shopify/theme @shopify/theme package issues #gsd:40767 Fortify local development experience for Liquid themes State: Waiting for feedback Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants