DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
Foundations & Tooling Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
hard
Foundations & Tooling
Why can't CommonJS `require()` load an ES module synchronously?
A
ESM files use a different file encoding
B
ESM evaluation is asynchronous; CJS require() is synchronous — they're incompatible
C
require() only supports .js files, not .mjs
D
ESM uses different variable scoping
Check Answer