Solved

Why am I getting a theme serve error in my development process?

Sjois
Shopify Partner
6 0 4

I am new to Shopify theme development. Currently following the tutorial by Shopify. Everything was going smoothly but I am getting the following error every time I run "Shopify theme serve":

[Note] You cannot use gems with Shopify CLI.
[LoadError] cannot load such file -- wdm
       They are disabled.
       Please don't modify the CLI locally.
       If you would like to contribute to the CLI project, please refer to
       https://github.com/Shopify/shopify-cli/blob/main/.github/CONTRIBUTING.md

  Please add the following to your Gemfile to avoid polling for changes:
    gem 'wdm', '>= 0.1.0' if Gem.win_platform?
X You are not authorized to edit themes on banana-man-co.myshopify.com.
Make sure you are a user of that store, and allowed to edit themes.


Also, I know it says I am not authorized to edit themes but I am pretty sure that I am logged in as the admin. Anybody know how to fix this?

EcomJetpack.co | Blog about Shopify SEO
Accepted Solution (1)

chefJuanPi
Shopify Partner
22 1 9

This is an accepted solution.

I use windows. to solve this problem.

1) If you don't have installed RUBY, open the console as administrator, and Install ruby using choco

2) Now install the ruby dev-tools

ridk install 3

 3) install wdm gem

gem install wdm

 

Now it should works without troubles 

View solution in original post

Replies 10 (10)

haroldao
Shopify Partner
13 0 0

Hi.

 

I had the same error in my terminal.

.... So, I log out (shopify logout) and login again (shopify login --store=https://your-store.myshopify.com)

And now, everything is ok 😎

Always Be Creative.
dev-dot
Tourist
3 0 2

I've tried everything that i can figure out so far and STILL have the same problem.. I'm the sole owner and logged out and back in .. definitely could use some help.

dev-dot
Tourist
3 0 2

edit: So after i replied initially, it did end up working and i had to log out completely of my dashboard and log back into my store through the web first , then i had to log back in through Shopify CLI, i hope this helps.. it took me a bunch of times of logging in and back out of both the web and the CLI but it will work eventually.

tobychen
Shopify Partner
10 0 4

@haroldao @Sjois @dev-dot Have you any progress on your issue? I can't run "shopify theme serve" with same reason. Please help me if you have solved this issue.

dev-dot
Tourist
3 0 2

See my initial reply above, I edited to describe what worked for me.. I did not have to install anything through brew.

kacalica
Tourist
9 0 4

awesome this was finally the answer to my problem thank you!

tobychen
Shopify Partner
10 0 4

Run gem install wdm on the command prompt.

Then you won't see this issue but still see

X You are not authorized to edit themes on banana-man-co.myshopify.com.
Make sure you are a user of that store, and allowed to edit themes.

This issue happens for store owners and it is an active issue on Shoify CLI github page. https://github.com/Shopify/shopify-cli/issues/133.

 

Follow Caution note on https://shopify.dev/themes/tools/cli/getting-started .

chefJuanPi
Shopify Partner
22 1 9

This is an accepted solution.

I use windows. to solve this problem.

1) If you don't have installed RUBY, open the console as administrator, and Install ruby using choco

2) Now install the ruby dev-tools

ridk install 3

 3) install wdm gem

gem install wdm

 

Now it should works without troubles 

Sjois
Shopify Partner
6 0 4

That worked. Thanks

EcomJetpack.co | Blog about Shopify SEO
martincrownover
Shopify Partner
10 0 14

This did not work for me, unfortunately.

 

I have installed wdm multiple times and have logged in/out over and over. each time I start up my theme development, I am met with this:

 

[Note] You cannot use gems with Shopify CLI.
[LoadError] cannot load such file -- wdm
They are disabled.
Please don't modify the CLI locally.
If you would like to contribute to the CLI project, please refer to
https://github.com/Shopify/shopify-cli/blob/main/.github/CONTRIBUTING.md

Please add the following to your Gemfile to avoid polling for changes:
gem 'wdm', '>= 0.1.0' if Gem.win_platform?



I am using Shopify CLI version 3.34.0.

 

I'm not really a Ruby dev, so I have no idea how to solve this. Any further help would be much appreciated!

 

Edit: alright, nevermind all that. I just restarted it again and now I'm not seeing any errors. 🙃

Need better art/design? Massive Catapult can help!