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

error: Cannot load ES module synchronously #17633

Open
johnfn opened this issue Feb 24, 2025 · 0 comments
Open

error: Cannot load ES module synchronously #17633

johnfn opened this issue Feb 24, 2025 · 0 comments
Assignees
Labels
bake:dev hot-reloading dev server for client+server applications enhancement New feature or request

Comments

@johnfn
Copy link

johnfn commented Feb 24, 2025

What version of Bun is running?

1.2.3

What platform is your computer?

macOS

What steps can reproduce the bug?

Install moment + moment-timezone

    "moment": "^2.30.1",
    "moment-timezone": "^0.5.45",

Import moment-timezone

import moment from 'moment-timezone';

Use bun's new frontend dev server:

bun index.html

What is the expected behavior?

It works.

What do you see instead?

Runtime Error
error: Cannot load ES module synchronously
at http://localhost:3000/_bun/client/index-00000000564cb2fb.js:65774:41
at node_modules/moment-timezone/moment-timezone.js in http://localhost:3000/_bun/client/index-00000000564cb2fb.js:65780:7
at node_modules/moment-timezone/index.js in http://localhost:3000/_bun/client/index-00000000564cb2fb.js:64909:43

Additional information

No response

@johnfn johnfn added bug Something isn't working needs triage labels Feb 24, 2025
@Jarred-Sumner Jarred-Sumner added bake:dev hot-reloading dev server for client+server applications and removed needs triage labels Feb 24, 2025
@paperclover paperclover added enhancement New feature or request and removed bug Something isn't working labels Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bake:dev hot-reloading dev server for client+server applications enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants