No source info available for syntax error caused during dynamic import
#45862
Labels
esm
Issues and PRs related to the ECMAScript Modules implementation.
import
#45862
danfuzz commentedDec 14, 2022
•
edited
Version
v19.2.0
Platform
Darwin chug.lan 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:29 PDT 2022; root:xnu-8020.121.3~4/RELEASE_ARM64_T8101 arm64
Subsystem
ESM (presumably)
What steps will reproduce the bug?
Make a fresh directory with the two files shown here,
main.mjsandother.mjs, and then runmain.mjs. Here's a convenient script to make the files and then run Node:How often does it reproduce? Is there a required condition?
Consistently reproducible. No conditions required AFAIK.
What is the expected behavior?
Error thrown which contains the usual text that allows for easy identification. The output from this example would be something like this:
or, arguably nicer, something like this:
What do you see instead?
Additional information
I did notice apparently-related issue #17277 and PR #17281, which I would have thought addressed this issue, but I guess not.
The text was updated successfully, but these errors were encountered: