Skip to content

Bug: Uncaught TypeError: pydocthemeDark is null #229

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

Closed
IncandescentChrysalis opened this issue Apr 11, 2025 · 2 comments
Closed

Bug: Uncaught TypeError: pydocthemeDark is null #229

IncandescentChrysalis opened this issue Apr 11, 2025 · 2 comments
Labels

Comments

@IncandescentChrysalis
Copy link

IncandescentChrysalis commented Apr 11, 2025

Describe the bug

Since an update earlier this afternoon, the dark theme fails to load and the following error pops in the console:

Uncaught TypeError: pydocthemeDark is null

To Reproduce

  1. With a dark theme-enabled browser, go to https://docs.python.org/3/Using the theme switch after loading the page is a valid test case too
  2. Assert dark theme hasn't loaded
  3. Check Web console

Expected behavior

Dark theme loaded

URL to the issue

https://docs.python.org/3/

Relevant log output

Uncaught TypeError: pydocthemeDark is null
    activateTheme https://docs.python.org/3/_static/themetoggle.js:19
    <anonymous> https://docs.python.org/3/_static/themetoggle.js:24
@Mariatta Mariatta transferred this issue from python/pythondotorg Apr 11, 2025
@Mariatta
Copy link
Member

Moved to the python-docs-theme repo.

@AA-Turner
Copy link
Member

AA-Turner commented Apr 11, 2025

I've forced a manual rebuild and everything seems to be working. Please re-open this issue if the dark theme stops working again.

A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants