Skip to content

Svelte cli installs prettier extension that prevents formatting #825

@Varjovaras

Description

@Varjovaras

The Svelte CLI (npx sv create my-app) setup that includes both Prettier and Tailwind CSS currently installs a prettier-plugin-tailwindcss version that causes Prettier formatting to fail on .svelte files.

This failure occurs regardless of whether the file contains Tailwind classes.

Steps to Reproduce

Initialize a new SvelteKit project with tailwind and prettier.

Attempt to format a .svelte file (e.g., src/routes/+layout.svelte) in an editor using the local Prettier configuration (VS Code, Zed, or Vim).

I tested and the previous sv version 0.10.4 did not install the troublesome prettier plugin and it works fine.

Environment

Svelte CLI version: 0.10.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpkg:addsv add

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions