Skip to content

SyntaxError: The requested module 'shiki' does not provide an export named 'isPlaintext' #3552

@shoebham

Description

@shoebham

Describe the bug

Getting
SyntaxError: The requested module 'shiki' does not provide an export named 'isPlaintext'
when running npx vitepress init

image

Reproduction

Follow the steps mentioned here: https://vitepress.dev/guide/getting-started

install vitepress

  1. npm add -D vitepress
    Start the wizard
  2. npx vitepress init

Expected behavior

Succesful init of vitepress

System Info

System:
    OS: macOS 14.2.1
    CPU: (8) arm64 Apple M1
    Memory: 79.88 MB / 16.00 GB
    Shell: 3.6.1 - /opt/homebrew/bin/fish
  Binaries:
    Node: 21.6.1 - /opt/homebrew/bin/node
    npm: 10.2.4 - /opt/homebrew/bin/npm
  Browsers:
    Chrome: 121.0.6167.139
    Safari: 17.2.1
  npmPackages:
    vitepress: ^1.0.0-rc.41 => 1.0.0-rc.41

Additional context

I saw that it was fixed here #3550 some hours ago, but still i am getting this error

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions