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

Appearance switch button and custom css work with dev, but fail with preview #2075

Closed
3 tasks done
gvenusleo opened this issue Mar 12, 2023 · 3 comments
Closed
3 tasks done
Labels
bug: pending triage Maybe a bug, waiting for confirmation

Comments

@gvenusleo
Copy link

gvenusleo commented Mar 12, 2023

Describe the bug

When I use yarn docs:dev to view my site, it works. But when I used yarn docs:build and yarn docs:preview, the site's appearance switch button didn't work when clicked, and the custom css didn't work either.

Expected behavior

Appearance switch button and custom css work.

System Info

System:
    OS: Windows 10 10.0.22621
    CPU: (8) x64 AMD Ryzen 7 4700U with Radeon Graphics
    Memory: 8.17 GB / 15.37 GB
  Binaries:
    Node: 18.15.0 - C:\CodeSDK\nodejs\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 9.5.0 - C:\CodeSDK\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.22621.1265.0), Chromium (110.0.1587.69)
    Internet Explorer: 11.0.22621.1
  npmPackages:
    vitepress: ^1.0.0-alpha.52 => 1.0.0-alpha.52

Additional context

No response

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
@gvenusleo gvenusleo added the bug: pending triage Maybe a bug, waiting for confirmation label Mar 12, 2023
@amir20
Copy link

amir20 commented Mar 12, 2023

I saw this happen when upgrading to version 52. There is a JavaScript error in production which is breaking all js. Reverting to previous version fixes it.

I'll post the error when I get on my laptop.

@amir20
Copy link

amir20 commented Mar 12, 2023

Actually #2073 and #2074 are duplicates and have the error.

@yyx990803
Copy link
Member

should be the same and fixed in 905f58b

yyx990803 added a commit that referenced this issue Mar 13, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug: pending triage Maybe a bug, waiting for confirmation
Projects
None yet
Development

No branches or pull requests

3 participants