Problem using p5 'esm' via jsdeliver (cdn)

Hello,

I am very new to javascript and even more to ES modules. However, I think I am trying things out correctly here. But as I am not sure if I am doing things right, I first drop a question here before I report an issue at either jsdeliver or p5. My final question will be: is this a bug, or am I doing things wrong?

I am trying to use the p5 via cdn as esm from jsdeliver. However, when trying to load my html, the console reports

jsdelivr-header.js:7 Uncaught SyntaxError: The requested module '/npm/@davepagurek/[email protected]/+esm' does not provide an export named 'createFromCommands' (at jsdelivr-header.js:7:1)

as far as I could find in here in the bezier-path source, the createFromCommands command does get exported (but again I am totally new to modules, so I am not sure if my conclusion is right).

As I am not sure how to use esm modules, I asked ā€˜Gemini AI’ for a usage example. Trying to use that example results in the same error.
Here is my html




  p5.js ESM from jsDelivr Example
  


  


So now again my question, is the above described behavior due to a bug or me doing things the wrong way?

Thank you!