Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
TechWatching opened this issue Apr 16, 2025 · 9 comments · May be fixed by #2176
Open

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

TechWatching opened this issue Apr 16, 2025 · 9 comments · May be fixed by #2176

Comments

@TechWatching
Copy link
Contributor

TechWatching commented Apr 16, 2025

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
@181404010226
Copy link

I miss the same issue.

@yuxi-ovo
Copy link

who can help

@181404010226
Copy link

use v51.0.2

@antfu
Copy link
Member

antfu commented Apr 23, 2025

I can't reproduce it, can anyone send a proper reproduction?

@yuxi-ovo
Copy link

I can't reproduce it, can anyone send a proper reproduction?

reproduce repo https://github.com/yuxi-ovo/zgsConclusion
In fact, just after creating a new project with pnpm create slidev, running pnpm run dev produces the following error and leaves the page blank

Image

macos version 15.0
node version 18.19.0
And I remember there is a command to get these versions of the data directly, can you tell me about it

@old9
Copy link

old9 commented Apr 26, 2025

can reproduce this when the project path contains non-ASCII characters on Windows.

@TechWatching
Copy link
Contributor Author

can reproduce this when the project path contains non-ASCII characters on Windows.

Same, it seems to be the origin of the problem.

@Sheldon-MMMP
Copy link

Sheldon-MMMP commented May 8, 2025

@Heziode
Copy link

Heziode commented May 9, 2025

I confirm, running the project with the project path containing a non-ASCII character resulting a blank screen.
I'am on MacOS 15.4.1

@nekomoyi nekomoyi linked a pull request May 20, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants