nbviewer icon indicating copy to clipboard operation
nbviewer copied to clipboard

TypeError: element.get is not a function (in require.js)

Open sarusso opened this issue 2 years ago • 0 comments

I am developing a Python library for time series data analysis and I embedded a custom plotting engine with HTML and Javascript, based on Dygraphs.

Last time I checked my demo and quicktart notebooks on nbviewer.org, the plots were correctly rendered, but now I see no plots at all and in the Javascript console I get this error message, one for each plot that was supposed to be generated:

TypeError: element.get is not a function               require.js:900
    at Quickstart.ipynb:18008:72
    at Object.execCb (require.js:1690:33)
    at Module.check (require.js:865:51)
    at Module.enable (require.js:1177:22)
    at Module.init (require.js:783:26)
    at require.js:1453:36

To Reproduce

  1. Go here
  2. Scroll down until cell number 4
  3. See that no plot is generated, open Javascript console to check the error.

Expected behavior The plot should be correctly generated. Check this notebook, where I generated the plots in image format, to get an idea about what should appear (but as an interactive, Javascript-based plot).

Desktop:

  • OS: macOS Monterey
  • Browser: Chrome
  • Version: 108.0.5359.124 (Official Build) (arm64)

Additional context I unfortunately did not note down the build version on nbviewer when it is working. Right now the nbviewer version is: 8b013f7

sarusso avatar Jan 16 '23 16:01 sarusso