Pluto.jl icon indicating copy to clipboard operation
Pluto.jl copied to clipboard

HTML exports from Pluto 0.19.4 do not load (recurrence of #2606)

Open holomorphism opened this issue 2 years ago • 4 comments

When opening HTML exports from an older version of Pluto, nothing is displayed. (Similar issue to Issue #2606, seems to be caused by esm.sh and many-keys-weakmap.js)

This phenomenon has been occurring since about 2023-10-23. The html file that causes the problem (looks almost the same as in #2606):

  • Local html files output between approximately 2022-02-18 and 2023-04-06
  • Introduction to Computational Thinking (Spring 2021) page (https://computationalthinking.mit.edu/Spring21/images/)

The following is the chrome DevTools screen shot when opening the Computational Thinking page: DevTools console

The error message is as follows:

Failed to load resource: the server responded with a status of 500 ()
[https://esm.sh/v64/[email protected]/es2021/many-keys-weakmap.js]

I then clicked on the many-keys-weakmap.js link, which opened a page with the following content:

/* esm.sh - error */
throw new Error("[esm.sh] " + "could not resolve \"many-keys-weakmap/many-keys-weakmap\"");
export default null;

holomorphism avatar Nov 12 '23 01:11 holomorphism

i dont think we can fix this! 😭😭

@pankgeorg should we report it to esm.sh ?

fonsp avatar Aug 10 '24 19:08 fonsp

Yes we should. Just did that!

pankgeorg avatar Sep 12 '24 11:09 pankgeorg

It would be really nice to have an archival version that doesn't depend on external sources that can break. PDF has some limitations with certain kinds of information displays being cut off, and some plots render differently.

BioTurboNick avatar Sep 12 '24 14:09 BioTurboNick

Yes! We are working on this in https://github.com/fonsp/Pluto.jl/pull/2802

fonsp avatar Sep 17 '24 13:09 fonsp

We opened https://github.com/esm-dev/esm.sh/issues/879 about this, we can't fix this retroactively from our side.

https://github.com/fonsp/Pluto.jl/pull/2802 will prevent this problem in the future.

In the meantime, we stopped using esm.sh and unpkg.com for Pluto imports, we now only rely on jsdelivr.com, which seems like the most reliable. So exports from current Pluto versions are already more stable than 0.19.4.

fonsp avatar Nov 13 '24 13:11 fonsp

This appears to be fixed upstream

BioTurboNick avatar Nov 14 '24 19:11 BioTurboNick

I have also confirmed that the issue has been resolved. @fonsp @pankgeorg If no problem, can you please close this issue?

By the way, I looked at some of my past html files and again found them interesting. (Many of them were notes in which I tried to run some Julia code that was available on the Internet and added explanations.) I love Pluto after all. :blush:

holomorphism avatar Nov 14 '24 22:11 holomorphism