[Debian-pan-maintainers] Bug#1102558: jupyterlab: runtime fails with ReferenceError: require is not defined

Thiago Melo tmdmelo at gmail.com
Mon Apr 21 18:26:23 BST 2025


On Fri, 11 Apr 2025 10:16:33 +0200 Lorenzo Bertini
<lorenzobertini97 at gmail.com> wrote:
> is this what causes the page at localhost:port/lab to be blank? so I don't
> open another report...

I confirm that it's the cause of a blank jupyterlab page on Debian, yes.

> Does anyone know of a quick fix? I rely on this package.

This error comes from the file
/usr/share/jupyter/lab/static/main.1743612370.js , at this part:

```
e=>{"use strict";e.exports=require("crypto")}
```

One workaround is to remove this "require" function call in the code
above. After that and a hard refresh in the web browser, the
jupyterlab page opened normally for me.

After inspecting a functional build of this main js file (from the
Binder Project), it seems that this code was not properly minified
during the build process on Debian. This "require" function is not
supposed to be present in the built web app.

Regards,
Thiago



More information about the Debian-pan-maintainers mailing list