diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2023-07-17 16:19:00 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-17 16:19:00 -0400 |
| commit | 4ebe3bdb06a4d539cc8991e1241aa3150100f866 (patch) | |
| tree | 604b07d51d349adfa780c7a67d9fb15e16ba5c97 /cli/tests/testdata/npm/cjs_require_esm_error | |
| parent | 7a9f7f34195d74fe60eb48381bc2a32db741ceb7 (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.out | 4 |
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]) |
