summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/npm/cjs_require_esm_error
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-07-17 16:19:00 -0400
committerGitHub <noreply@github.com>2023-07-17 16:19:00 -0400
commit4ebe3bdb06a4d539cc8991e1241aa3150100f866 (patch)
tree604b07d51d349adfa780c7a67d9fb15e16ba5c97 /cli/tests/testdata/npm/cjs_require_esm_error
parent7a9f7f34195d74fe60eb48381bc2a32db741ceb7 (diff)
fix(node): improve error message requiring non-npm es module (#19856)
Closes #19842 Closes #16913
Diffstat (limited to 'cli/tests/testdata/npm/cjs_require_esm_error')
-rw-r--r--cli/tests/testdata/npm/cjs_require_esm_error/main.out4
1 files changed, 1 insertions, 3 deletions
diff --git a/cli/tests/testdata/npm/cjs_require_esm_error/main.out b/cli/tests/testdata/npm/cjs_require_esm_error/main.out
index dcb3d15b7..5c735b3a6 100644
--- a/cli/tests/testdata/npm/cjs_require_esm_error/main.out
+++ b/cli/tests/testdata/npm/cjs_require_esm_error/main.out
@@ -1,4 +1,2 @@
-error: Uncaught Error: [ERR_REQUIRE_ESM]: require() of ES Module [WILDCARD]my_esm_module.js from [WILDCARD]index.js not supported. Instead change the require to a dynamic import() which is available in all CommonJS modules.
- at Object.Module._extensions..js (node:module:[WILDCARD])
+error: Uncaught Error: require() of ES Module [WILDCARD]my_esm_module.js from [WILDCARD]index.js not supported. Instead change the require to a dynamic import() which is available in all CommonJS modules.
[WILDCARD]
- at Module.load (node:module:[WILDCARD])