Skip to content

Slidev version 51.5.0 displays a blank page with an error message #2154

Open
@TechWatching

Description

@TechWatching

Describe the bug

When using latest version of slidev (51.5.0), the presentation is not displayed in the browser and an error message is in the console "Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec."

Minimal reproduction

Steps to reproduce the behavior:

  1. Run the command pnpm create slidev
  2. Open the generated presetantion in your browser
  3. See the localhost:3030 does not display anything
  4. Open the web console and see the error

You can use https://sli.dev/new to create a new project to reproduce the issue.
Works fine with previous version.

Environment

  • Slidev version: 51.5.0
  • Browser: Edge
  • OS: Windows 11

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions