Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use dynamic imports in bun repl #3418

Closed
renhiyama opened this issue Jun 26, 2023 · 1 comment
Closed

Cannot use dynamic imports in bun repl #3418

renhiyama opened this issue Jun 26, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@renhiyama
Copy link

What version of Bun is running?

0.6.9

What platform is your computer?

Linux 5.15.74.2-microsoft-standard-WSL2 #1 SMP Wed Nov 2 19:50:29 UTC 2022 x86_64 x86_64

What steps can reproduce the bug?

Write await import("node:process") in bun repl

What is the expected behavior?

It should return back the export

What do you see instead?

> await import("node:process")
SyntaxError: Unexpected keyword 'import'
      at /home/ren/coding/frontend/$bun$repl.ts:4:106

Additional information

No response

@renhiyama renhiyama added the bug Something isn't working label Jun 26, 2023
@Electroid
Copy link
Contributor

bun repl is not an official command yet, you must be using the unofficial bun-repl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants