cli icon indicating copy to clipboard operation
cli copied to clipboard

shopify cli dev is so slowly

Open changeyoucant opened this issue 1 year ago • 6 comments

Please confirm that you have:

  • [x] 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.)
  • [x] 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 avatar Sep 23 '24 11:09 changeyoucant

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

GitYing avatar Sep 26 '24 00:09 GitYing

wsl with unix

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

changeyoucant avatar Sep 26 '24 03:09 changeyoucant

👋 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!

karreiro avatar Sep 26 '24 09:09 karreiro

👋 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

khdigital94 avatar Sep 26 '24 17:09 khdigital94

@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?

jamesmengo avatar Sep 26 '24 22:09 jamesmengo

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

savchukoleksii avatar Oct 02 '24 16:10 savchukoleksii

👋 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 avatar Oct 31 '24 14:10 karreiro

👋 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.

karreiro avatar Nov 11 '24 15:11 karreiro

👋 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.

thank you i update and is good!!!

changeyoucant avatar Jan 11 '25 09:01 changeyoucant