archetype-themes / plugin-theme-component

A Shopify CLI plugin for building theme components.
MIT License
9 stars 4 forks source link

CLI: Bug - Getting compilation errors when running `shopify theme dev` #341

Closed bertiful closed 6 months ago

bertiful commented 8 months ago

I'm running the latest plugin version 2.3.1. I'm getting the following output when running shopify theme dev --path=.explorer after running shopify theme component dev and the files begin to sync:

• 13:51:00 ERROR  » update manifest-2.0.0.json:
  404
  • 13:51:01 ERROR  » update assets/components.css:
  Cannot overwrite generated asset 'assets/components.css'.

Also ran npm run reset to clear up the directories and still the same issue.

montalvomiguelo commented 8 months ago

Filename conflicts will be fixed at the theme level when @justinbansal approves those PRs https://github.com/archetype-themes/expanse/pull/73

fleveillee commented 6 months ago

@bertiful I did get that error a couple of times as well. This is linked to our previous use of a css+liquid file: assets/components.css.liquid, where Shopify would generate an assets/components.css from the liquid one when uploaded. If you get the error again, please ensure there is not both an assets/components.css.liquid and an assets/components. css file in the assets folder.

Alternatively, you might have traces of that file in your dev theme, and you will need to delete it using shopify theme delete. Then, resync, and your problem should be solved.

Please close that issue if this solves your problem.