Skip to content

Incompatible with Prettier v3 #3165

@yannbertrand

Description

@yannbertrand
  • I confirm that this is an issue rather than a question.

Bug report

Steps to reproduce

  1. Set up a new project with yarn create vuepress-site
  2. cd docs && yarn install
  3. yarn add -D prettier
  4. yarn dev

Example codesandbox: https://codesandbox.io/p/sandbox/sharp-sanne-f5rkww

What is expected?

VuePress dev server should launch with no issues.

What is actually happening?

VuePress dev server launch with errors, the http://localhost:8080 web page displays a blank page with the devtools full of errors.

Other relevant information

  • Output of npx vuepress info in my VuePress project:
Environment Info:

  System:
    OS: Linux 6.1 Debian GNU/Linux 11 (bullseye) 11 (bullseye)
    CPU: (2) x64 AMD EPYC
  Binaries:
    Node: 16.17.0 - /tmp/yarn--1692349612835-0.9656215354670268/node
    Yarn: 1.22.19 - /tmp/yarn--1692349612835-0.9656215354670268/yarn
    npm: 8.15.0 - /usr/local/bin/npm
  Browsers:
    Chrome: Not Found
  npmPackages:
    @vuepress/core:  1.9.10 
    @vuepress/theme-default:  1.9.10 
    vuepress: ^1.9.10 => 1.9.10 
  npmGlobalPackages:
    vuepress: Not Found

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions