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

When using quarto dashboard, browser console error that jQuery is not defined - load order? #11338

Open
eamcvey opened this issue Nov 7, 2024 · 0 comments
Assignees
Labels
bug Something isn't working dashboards
Milestone

Comments

@eamcvey
Copy link

eamcvey commented Nov 7, 2024

Bug description

Quarto dashboards include datatables.min.js which appears to require jQuery, and causes an error in the browser console about jQuery not being defined. I believe this is because jQuery needs to be loaded first and is not. I can add a script to load jQuery using include-in-header but it loads jQuery after datatables.min.js, and hence does not eliminate the error. Manually editing the html to change the order does eliminate it.

Steps to reproduce

---
title: "test"
format: dashboard
---

## Hello

When I render this simplest of dashboards and use dev tools in the browser to look at the console, I see the error jQuery is not defined.

Expected behavior

The html generated should not throw errors in the browser.

Actual behavior

There's a jQuery is not defined error in the browser console due to jQuery not being loaded before datatables.min.js

Your environment

  • IDE: RStudio version 2024.04.2+764
  • OS: Ventura 13.4
  • Quarto version 1.5.57

Quarto check output

Quarto 1.5.57
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.2.0: OK
Dart Sass version 1.70.0: OK
Deno version 1.41.0: OK
Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.5.57
Path: /Applications/quarto/bin

[✓] Checking tools....................OK
TinyTeX: v2023.06
Chromium: (not installed)

[✓] Checking LaTeX....................OK
Using: TinyTex
Path: /Users/elainemcvey/Library/TinyTeX/bin/universal-darwin
Version: 2023

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
Version: 3.11.6
Path: /private/var/folders/gf/x1wgsr292lg4j14sftwts7hh0000gn/T/Rtmpt4lf0Q/rstudio/terminal/python3
Jupyter: (None)

  Jupyter is not available in this Python installation.
  Install with python3 -m pip install jupyter

[✓] Checking R installation...........OK
Version: 4.4.0
Path: /Library/Frameworks/R.framework/Resources
LibPaths:
- /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library
knitr: 1.47
rmarkdown: 2.27

[✓] Checking Knitr engine render......OK

(base) elaines-mbp:data-site elainemcvey$ quarto --version
1.5.57
(base) elaines-mbp:data-site elainemcvey$ quarto check
Quarto 1.5.57
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.2.0: OK
Dart Sass version 1.70.0: OK
Deno version 1.41.0: OK
Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.5.57
Path: /Applications/quarto/bin

[✓] Checking tools....................OK
TinyTeX: v2023.06
Chromium: (not installed)

[✓] Checking LaTeX....................OK
Using: TinyTex
Path: /Users/elainemcvey/Library/TinyTeX/bin/universal-darwin
Version: 2023

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
Version: 3.11.6
Path: /private/var/folders/gf/x1wgsr292lg4j14sftwts7hh0000gn/T/Rtmp6vp4EL/rstudio/terminal/python3
Jupyter: (None)

  Jupyter is not available in this Python installation.
  Install with python3 -m pip install jupyter

[✓] Checking R installation...........OK
Version: 4.4.0
Path: /Library/Frameworks/R.framework/Resources
LibPaths:
- /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library
knitr: 1.47
rmarkdown: 2.27

[✓] Checking Knitr engine render......OK

@eamcvey eamcvey added the bug Something isn't working label Nov 7, 2024
@cscheid cscheid self-assigned this Nov 8, 2024
@cscheid cscheid added this to the v1.6 milestone Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dashboards
Projects
None yet
Development

No branches or pull requests

2 participants