distill icon indicating copy to clipboard operation
distill copied to clipboard

Uncaught TypeError: window.tippy is not a function

Open njahn82 opened this issue 2 years ago • 3 comments

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

njahn82 avatar Apr 04 '22 14:04 njahn82

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

cderv avatar Apr 04 '22 18:04 cderv

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

njahn82 avatar Apr 05 '22 08:04 njahn82

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 avatar Sep 06 '22 09:09 cderv