Error [ERR_INTERNAL_ASSERTION]: This is caused by either a bug in Node.js or incorrect usage of Node.js internals. #54861
Labels
duplicate
Issues and PRs that are duplicates of other issues or PRs.
Version
v22.7.0
Platform
Subsystem
loader
What steps will reproduce the bug?
node main.js
.How often does it reproduce? Is there a required condition?
Always reproduces with v22.7.0, does not reproduce with v22.6.0.
Running as
node --no-experimental-detect-module main.js
does not trigger the assert, and instead shows an expected error message "SyntaxError: Cannot use import statement outside a module".What is the expected behavior? Why is that the expected behavior?
What do you see instead?
Additional information
No response
The text was updated successfully, but these errors were encountered: