Skip to content
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

Uncaught ReferenceError only in static site after building #2052

Open
polla-fattah opened this issue Feb 4, 2025 · 0 comments
Open

Uncaught ReferenceError only in static site after building #2052

polla-fattah opened this issue Feb 4, 2025 · 0 comments

Comments

@polla-fattah
Copy link

polla-fattah commented Feb 4, 2025

Describe the bug
it works fine with dev env but
when building shows a an error message in console:

Uncaught ReferenceError: Cannot access 'v' before initialization
at monaco-editor-DjCaHU5d.js:1:1403

Minimal reproduction

Steps to reproduce the behavior:

  1. build the slides.md
  2. open dist/index.html with/without Live server of vs code on a browser
  3. Nothing to show it is a blank white page
  4. inspect page there are an html tags

Also same thing with github pages
https://polla.dev/slidev/

Environment

  • Slidev version: 51.1.0
  • Browser: Chrome latest, Firefox latest
  • OS: Ubuntu 24.4
@polla-fattah polla-fattah changed the title Blank Web page after building the slides Uncaught ReferenceError only in static site after building Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant