Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Formatting .liquid files clears the code instead #150

Closed
Afamsinachi opened this issue Jan 22, 2024 · 3 comments
Closed

Formatting .liquid files clears the code instead #150

Afamsinachi opened this issue Jan 22, 2024 · 3 comments

Comments

@Afamsinachi
Copy link

Afamsinachi commented Jan 22, 2024

Hello, I've setup everything as mentioned in developing theme docs, but formatting .liquid files clears code instead of formatting the document. I'm having this experience on vscode, prettier-plugin-liquid 1.4.1, prettier 3.2.4.

.prettierrc
{ "printWidth": 120, "singleQuote": true, "tabWidth": 2, "useTabs": false, "plugins": ["@shopify/prettier-plugin-liquid"], "overrides": [ { "files": "*.liquid", "options": { "singleQuote": false } } ] }

@Afamsinachi Afamsinachi changed the title Formatting .liquid deletes code instead Formatting .liquid files clears the code instead Jan 22, 2024
@gregbarbosa
Copy link

Facing the same issue here, not sure how to debug to share more details.

@charlespwd
Copy link
Contributor

See Shopify/theme-tools#327

@gregbarbosa
Copy link

In case anyone else finds this: try reinstalling yarn.

I had a conflict somewhere with my homebrew and yarn installs. Uninstalling yarn completely and re-downloading threw brew worked!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants