Skip to content

Uncaught TypeError: document.querySelector(...) is null #1626

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
dbitouze opened this issue Jan 4, 2024 · 4 comments · Fixed by #1683
Closed

Uncaught TypeError: document.querySelector(...) is null #1626

dbitouze opened this issue Jan 4, 2024 · 4 comments · Fixed by #1683
Labels
kind: bug Something isn't working tag: javascript Pull requests that update Javascript code

Comments

@dbitouze
Copy link
Contributor

dbitouze commented Jan 4, 2024

With PST 0.15.1, the Web tool's console reads:

  • on Firefox:
    Uncaught TypeError: document.querySelector(...) is null
        T pydata-sphinx-theme.js:569
        r mixin.js:12
        937 pydata-sphinx-theme.js:584
        a async module:49
        937 pydata-sphinx-theme.js:1
        Webpack 3
            c
            <anonymous>
            <anonymous>
    pydata-sphinx-theme.js:569:28
    
  • on Chromium:
    pydata-sphinx-theme.js:570 Uncaught TypeError: Cannot read properties of null (reading 'classList')
          at HTMLDocument.T (pydata-sphinx-theme.js:570:5)
    T @ pydata-sphinx-theme.js:570
    
@12rambau
Copy link
Collaborator

12rambau commented Jan 4, 2024

I don't see this error on our build, could you share a link to the documentation page so we can track down the problem ?

@dbitouze
Copy link
Contributor Author

dbitouze commented Jan 4, 2024

I don't see this error on our build, could you share a link to the documentation page so we can track down the problem ?

Unfortunately no: I noticed the trouble locally on my computer and would like to prevent from the issues I encounter with 0.15.1 my public Web site (which is stick with 0.14.4).

@12rambau 12rambau added kind: bug Something isn't working tag: javascript Pull requests that update Javascript code labels Jan 4, 2024
@peytondmurray
Copy link
Contributor

peytondmurray commented Jan 12, 2024

I'm seeing this - here's a commit where it is currently failing for a project: observational-dev/oawiki@90332a3.

Possibly related: the primary sidebar (and toctree) is missing when I build with 0.15.1 or for 0.15.0rc0. If this is unrelated I can make a different issue.

@dbitouze
Copy link
Contributor Author

Still happens with PST 0.15.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Something isn't working tag: javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants