i cant run the shopify theme serve command

julioweb
Shopify Partner
1 0 0

this is the issuethis is the issueHello there, i cant run the shopify theme serve command, because it show me this error:
An unexpected error occured.
To submit an issue include the stack trace.
undefined method `shop' for nil:NilClass (NoMethodError)
403 (ShopifyCLI::API::APIRequestForbiddenError)
{"errors":"Unauthorized Access"}
Note: i'm the store owner

Reply 1 (1)

awwdam
Shopify Staff
249 42 36

Hey @julioweb,

I appreciate you taking the time to post regarding some unexpected behavior with the Shopify CLI while running theme serve. If you have already worked through the CLI docs and troubleshooting guide, but are still facing unexpected functionality while using this development tool, please consider opening an issue in the official Github repository - Shopify CLI.

I generally suggest working through recent issues for any related content first, and if you do create a new issue be sure to include as much detail as possible about the error, troubleshooting, etc.

Cheers!

awwdam | API Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog