It creates objects for the import, but when accessing it it throws the error Cannot read properties of undefined (reading 'getSelf') from line in the getter:

let moduleRoot = window.moduleSpace[moduleName].getSelf;

So it seems like it thinks it’s there, but it hasn’t actually loaded in at all.

Short-term, a more useful error message would be useful for creators. But ideally, it would actually load in the import when createPerchanceTree is called.

  • @perchanceM
    link
    English
    1
    edit-2
    25 days ago

    or sitting on my hands doing nothing […] And I always chat to you about it here anyway

    I really love how you just dig in and solve the problems yourself - this is a very useful trait to have in life. So long as you let me know so I can create an “official” way I’m happy 😅 Thanks for pushing at the edges of the engine - it’s very helpful! I’m going to switch https://perchance.org/dynamic-import-plugin to use the new recursive import code now.

    • @wthit56OP
      link
      English
      125 days ago

      It’s nice you’re cool with it. I could imagine someone else just being annoyed–this is better I think 😁

    • @wthit56OP
      link
      English
      125 days ago

      Great, I’ve updated my createPerchanceTree with that now 👍