How do we use dynamic import with REPL? #2097
Unanswered
joshinihal
asked this question in
Official Recipes
Replies: 1 comment
-
https://github.com/privatenumber/tsx#repl I checked — the same |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to use dynamic import in REPL -
ts-node -e 'import("../../src/module").then( (loadedModule) => {loadedModule.func()})'
But I'm getting this error:
This is how my
tsconfig.json
looks -I've looked over the internet but I can't find a way to fix this. Can anyone help me? Apologies if this is already answered. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions