-
Notifications
You must be signed in to change notification settings - Fork 202
Theme serve command returns scope error #1309
Comments
Im having the same issue 🙁 |
It appears to be when you create a new development theme via a partner account. |
I got the same issue when you create new development store, however it works fine with old developments stores that don't support OS2 features yet. |
it's the same for me. somehow the partner account is not correctly linked to a new dev store. i see all stores in my account except the created dev stores after the unite event. |
Hey everyone! Can you confirm you're all using a development store created from the Partner dashboard? |
Same issue for me, also with a development store created from the Partner dashboard. |
I think I know what's happening: Working with dawn you need to be logged in with a staff account, not your partner account. Logging out and then logging in with a staff account with full permissions fixes this specific error. |
@iliquifysnacks I stumbled across that myself by creating a staff account using a different email address. It works fine but the problem i have now is that because im using a different email address to my Github account, i cant connect the theme to Github. so it still feels like its a bug to me? |
Two possible workarounds: You need to have a staff account on the dev shop or, if you’re logging in as the owner, you need to log in directly to the dev shop first through We're updating the docs w/ this info, and looking at solutions 🙌 |
I second that this is a bug. But probably not with the CLI but the dawn theme? I have not yet tried to connect the theme to my Github Account. But for development it is probably not going to be a problem that someone makes edits in the theme editor online that are not synced to git. |
Is it planned to have it work with only partner account? Creating a staff account is definitely not a possibility for all of our clients so I won't be able to use the shopify CLI for themes until it works with partner account (or maybe an integration with private apps like themekit?) |
It should work already for collaborator accounts, if that's what you mean. The only issue should be w/ owners of development stores. Let me know if there's something else that doesn't work for you. |
oh ok good to know, I tested it out on a new dev store to test the OS 2.0 so that's probably why! I'll have to test it out on a real store. |
Thanks for this. I did try the following:-
So for me, currently i have to create myself a staff account by using a different email address, it seems to be the only way. This then prevents me trying out the Github connect feature since my github account uses my other email address. Thanks |
I'm having a similar issue where I login but it says I don't have an organization account even though its the login I use to access our organizations partner account to enter the store. |
I am using a partner dev store created after Unite and it has OS 2.0 enabled. When I use shopify cli either as the dev store owner OR as a staff member with full account creds, I'm still getting auth errors. So I for one still don't have a flow for developing with Dawn / OS 2.0. |
Can confirm logging in directly to the dev shop first this resolved using |
Ok, here's the work around that worked for me.
|
Thanks @seeReadCode! That was the only thing that worked for me. |
Step by step how you can solve it:
NOW you can use "shopify theme serve" without problems!. Paso a paso como resolver el problema:
AHORA puedes usar "shopify theme serve" sin problemas! |
Similar to @Nicolasramos411, I used a shopify staff account to overcome the permission error on my new DEV store using DAWN. Exact Steps: PERMISSION ERROR WORKAROUND
|
I did notice I cannot log in as the owner, or as the new staff user when I hit Can anyone advise what is going on? I've tried every step above with no luck. |
Hi @Kcharle - Can you log into your DEV store from your partner dashboard? If yes, log in as owner to new DEV store, and check to make sure the user you created is active - you should see "Congratulations on your growing team! You’ve added a second staff account to your store. Welcome, XYZ! ". You can double check permissions, then make sure your new user has reset their password. You can email them/you instructions from the staff page. Log out everywhere. Go to new pw reset instructions and reset pw. Then log into your DEV store - but make sure you log in as new email address (sounds obvious but for me shopify always defaults me to my partner email) Then go to CLI and try...with fingers crossed. |
Hi @kgeiger310 thanks! Realized I had a bit of confusion on my end, as well as a derp moment where an extension I have to show me a website's IP was covering the store "Settings" link haha. I was able to login with the CLI, however I do have a clarification question though. From what I understand, as a partner within the partner dashboard, you can add other users as owners or staff at a partner level, and that's what I had done. But it looks like I actually need to create a staff member within the specific store itself under Users & Permissions? Some screenshots of what I'm seeing on my end.
Am I correct in saying that a staff user has to be added directly to the store, and not on a partner dashboard level for the shopify-cli to work? |
I don't understand why a collaborator account can't just automatically become a staff user as well (at least for the meantime so we can start using the new features). This seems overly complicated for no reason? |
I don't understand, I've tried a number of solutions here and the only one that works is to create a staff account. This is not an acceptable solution, however, because the entire point of a development store is:
This issue makes the usual development workflow impossible? Deleting the staff account means I lose access again, so I have to keep a staff seat to use my collaborator access? What if we need >15 people to have access to the site during development? |
I was facing the same issue We have only one solution using |
@arunmecom's method works, but it does not solve the issue which is logging in via Partner account. Also, other accounts logged into a partner dashboard do not have access by logging in through "/admin". |
👋🏼 |
Amazing that the cli was released in this state. |
Hey, is there any update on why this continues to be the policy: You can't use Shopify CLI with development stores if you only have Partner staff member access. If you want to use Shopify CLI to work on a development store, then you should be the store owner or create a staff account on the store. I believe it's pretty common for Agencies to create partner accounts, and then freelance developers (like me), to be given staff access to that partner account. As it is now my staff partner account cannot use the CLI, even though it has full theme editing permissions outside the CLI. The workaround of creating a separate staff account works, but is unacceptable as it takes up staff seats. So I basically can't use the CLI on a large amount of my work. Just want some clarification of if this is a bug that you intend to fix or an intentional limitation on staff partner accounts! |
This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. → If there's no activity within a week, then a bot will automatically close this. Thanks for helping to improve Shopify's dev tooling and experience. |
Stay alive |
@andershagbard I'm pretty sure this is resolved. I was recently able to use shopify cli without creating a staff account on a development store. In fact, it wouldn't let me create a staff that matched the partner account. I'm on Version 2.28.0. |
@hunterruth Unfortunately this issue still rears its ugly head from time to time. Just less often. |
@andershagbard thanks for the keep-alive on this!
It's a bug. The fix is not something straightforward in just the CLI, or even the Partner dashboard, as it involves user identity. I can confirm its being actively worked on, and can only beg patience whilst its resolved. Once the underlying issue is sorted this problem should go away. In the meantime, the workaround in the error message is the right one. |
I just transferred the ownership. |
This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. → If there's no activity within a week, then a bot will automatically close this. Thanks for helping to improve Shopify's dev tooling and experience. |
Is not inactive, still happen |
in summary... in 2023... what is the right solution? |
Whenever I run
shopify theme serve
, it returns this error:shopify whoami
returns the following:I can login to this store and edit themes the "normal" way.
Specifications
The text was updated successfully, but these errors were encountered: