Hello,
Thank you, Maribeth, for your reply.
I realised that this error only occurs when JS thinks that we are accessing something which is not defined (yet), but it is the crazy world of JS. So, I divided the files: one with block configurations and one with python generators. I called the block configurations first and then the generator. So, now my workspace is loading, and the blocks have no error.
Thank you for recommending the imports. I have changed the code accordingly.
So, now my folder structure is as follows:
Also, here is an example snippet from the generators:
Updated imports:
Workspace working perfectly:
Thank you very much for your help.
Best,
Srijan