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

[Bug]: Shopify-cli 3.69.2. Your development session could not be created because the "_shopify_essential" could not be defined. Please, check your internet connection. #4735

Open
2 tasks done
anhtuan2810 opened this issue Oct 24, 2024 · 7 comments
Assignees
Labels
Area: @shopify/theme @shopify/theme package issues #gsd:40767 Fortify local development experience for Liquid themes important second highest severity for theme related bug State: Waiting for feedback Type: Bug Something isn't working

Comments

@anhtuan2810
Copy link

anhtuan2810 commented Oct 24, 2024

Terminal Command shopify app dev

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

Your development session could not be created because the "_shopify_essential" could not be defined. Please, check your internet connection.

Actual behavior

Your development session could not be created because the "_shopify_essential" could not be defined. Please, check your internet connection.

Verbose output

Your development session could not be created because the "_shopify_essential" could not be defined. Please, check your internet connection.

Reproduction steps

Operating System

MacOS

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

3.69.2

Shell

No response

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

No response

What language and version are you using in your application?

No response

@anhtuan2810 anhtuan2810 added the Type: Bug Something isn't working label Oct 24, 2024
@jamesmengo
Copy link
Contributor

jamesmengo commented Oct 24, 2024

Hey @anhtuan2810!
Please feel free to fill out another issue with more complete information.

I'm closing this for now.
Thanks!

@vincaslt
Copy link

vincaslt commented Oct 25, 2024

I'm getting this same error from this morning: Image

Happens when starting dev server shopify app dev and I've tried logging out and in from CLI, and to update to the latest version.

I'm on windows. Yesterday it was working fine.

@vincaslt
Copy link

For the time being, I'm using WSL to start the dev server, which works. The difference I see from before is that now it asks for a store password when authenticating the CLI, which it didn't use to before, maybe it's related. Still doesn't work on windows.

@lukeh-shopify lukeh-shopify reopened this Oct 28, 2024
@lukeh-shopify
Copy link
Contributor

lukeh-shopify commented Oct 28, 2024

Hi @vincaslt , would you mind sharing the output of the logs with the --verbose flag appended to your command?

Please use this format to include some other information which might be helpful for our investigation:

### Verbose output


### Reproduction steps

1.
2.
3.

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

@karreiro karreiro added #gsd:40767 Fortify local development experience for Liquid themes Area: @shopify/theme @shopify/theme package issues important second highest severity for theme related bug labels Oct 29, 2024
@jamesmengo
Copy link
Contributor

Hey @anhtuan2810 @vincaslt! I've done some investigating, and in order to determine where the fix needs to live I need your help gathering data, as we unfortunately can't replicate this on our side. I also have a potential workaround in mind, but I need to validate something once I get the data.

What I need from you (using your own package manager):

  1. Uninstall shopify cli

    npm uninstall -g @shopify/cli
  2. Install this custom snapshot

    npm i -g @shopify/[email protected]
  3. Run the command again with the verbose flag

    shopify app dev --verbose
  4. Share the verbose logs by filling out the template that is linked here

@jamesmengo
Copy link
Contributor

You can also try this workaround - Please let me know if this works so that we can introduce a programatic fix if this occurs in the future

1) Ensure that you're accessing the right store shopify theme list --store=<YOUR_STORE>
2) Run the following command to delete the host theme attached to your theme app extension (this is safe and won't affect your extension - these host themes are designed to be ephemeral)
shopify theme delete -t=$(shopify theme list --name="App Ext. Host*" | grep -o '#[0-9]*' | tr -d '#')
3) Verify that the theme was deleted. You should NOT see any themes called App Ext. Host.
shopify theme list 

If you do see such theme, delete it using shopify theme delete -t=<THEME_ID>

4) Run app dev again.
5) Update me with your results here please!

@pnmcosta
Copy link

pnmcosta commented Nov 9, 2024

I had this issue on a parked laptop that just picked up and used for my app/repo temporarily.

Running @jamesmengo fixed it up perfectly. Edit: this

Thank you.

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 important second highest severity for theme related bug State: Waiting for feedback Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants