How to Perform Dynamic Imports in an Effect CLI App

Hey all, currently playing around with effect and building my first effect CLI app.
I want to do a dynamic import and wondering what's the best way to do it.
My app consists of an Effect.gen generator function that is ran through the
NodeRuntime.runMain
function.

I've tried to use an async function generator in Effect.gen to be able to await a dynamic import but that doesn't seem to be supported: Error: BUG: yieldWrapGet - please report an issue at https://github.com/Effect-TS/effect/issues The code is just: const app = Effect.gen(async function* () { ... })

What would be the right/correct/effectful way of doing a dynamic import?
Was this page helpful?