Skip to content

.svelte files refuse to format regardless of config, missing svelte/compiler dependency #197

Description

@nmontavon

Even when specifying svelte settings, and successfully linking the config (other settings are applying), Zed can't format .svelte files.

Workaround/Fix:
cd into ~/Library/Application\ Support/Zed/extensions/work/oxc and install the svelte package, so that the 'svelte/compiler' oxfmt relies on is present.

This seems slightly extreme, it might be cleaner to provide a config setting to a user-specified svelte/compiler install path or similar.

Latest Zed & oxc-extension.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Fields

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions