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 TypeError: window.tippy is not a function #450

Open
njahn82 opened this issue Apr 4, 2022 · 3 comments
Open

Uncaught TypeError: window.tippy is not a function #450

njahn82 opened this issue Apr 4, 2022 · 3 comments

Comments

@njahn82
Copy link

njahn82 commented Apr 4, 2022

While updating our blog with the current distill version, we realized that old blog posts remain blank after building the site. The reason is an "Uncaught TypeError: window.tippy is not a function" (see screenshot). If I remove this function, the blog post is shown.

Here's the link to the non-working blog post compiled with distill 1.3:
https://frabjous-snickerdoodle-8ccabc.netlify.app/posts/elsevier_invoice/

And the working version with distill v0.7
https://subugoe.github.io/scholcomm_analytics/posts/elsevier_invoice/

Screenshot

Bildschirmfoto 2022-04-04 um 15 51 50

@cderv
Copy link
Collaborator

cderv commented Apr 4, 2022

Thanks for the report. 0.7 is quite an old version now. I'll need to be able to reproduce this to understand the issue.
It is possible that there is a conflict in JS version between old post and new JS lib. Website is using a common lib dir for some dependency and updating would update those.

Can you share the workflow you used ? Are you rerendering some posts ?

thanks

@njahn82
Copy link
Author

njahn82 commented Apr 5, 2022

Thanks for taking the time to look into this.

Here's the workflow:

git clone https://github.com/subugoe/scholcomm_analytics
cd scholcomm_analytics

Within R session the most recent CRAN version of distill was installed and then:

rmarkdown::render_site()

The posts are standalone documents that we rendered with knit (eg https://github.com/subugoe/scholcomm_analytics/tree/master/_posts/datacite_graph). I tried re-rendering these posts with the updated distill. Unfortunately, this does not work because of dependencies (for example, one blog post fetched data from an API, which is not accessible any longer).

Just in case, here's my session info

R version 4.1.2 (2021-11-01)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Big Sur 11.4

Matrix products: default
BLAS:   /Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/lib/libRlapack.dylib

locale:
[1] de_DE.UTF-8/de_DE.UTF-8/de_DE.UTF-8/C/de_DE.UTF-8/de_DE.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
 [1] rstudioapi_0.13 knitr_1.38      xml2_1.3.3      magrittr_2.0.3 
 [5] downlit_0.4.0   R6_2.5.1        rlang_1.0.2     fastmap_1.1.0  
 [9] fansi_1.0.3     stringr_1.4.0   tcltk_4.1.2     tools_4.1.2    
[13] xfun_0.30       png_0.1-7       cli_3.2.0       jquerylib_0.1.4
[17] htmltools_0.5.2 yaml_2.3.5      digest_0.6.29   rprojroot_2.0.3
[21] bookdown_0.25   sass_0.4.1      base64enc_0.1-3 vctrs_0.4.0    
[25] distill_1.3     mime_0.12       memoise_2.0.1   cachem_1.0.6   
[29] evaluate_0.15   rmarkdown_2.13  stringi_1.7.6   compiler_4.1.2 
[33] bslib_0.3.1     generics_0.1.2  jsonlite_1.8.0  lubridate_1.8.0

@cderv cderv moved this to Backlog in R Markdown Team Projects Sep 1, 2022
@cderv cderv moved this from Backlog to Todo in R Markdown Team Projects Sep 1, 2022
@cderv
Copy link
Collaborator

cderv commented Sep 6, 2022

Sorry to come back late on this.

I can't see any issue (maybe no more issue) using the above repo and latest version of all.

Is this fix for you somehow ?

Thank you

@cderv cderv moved this from Todo to In Progress in R Markdown Team Projects Sep 6, 2022
@cderv cderv moved this from In Progress to Backlog in R Markdown Team Projects Sep 7, 2022
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

2 participants