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_mjs_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_mjs_error')
| -rw-r--r-- | cli/tests/testdata/npm/cjs_require_esm_mjs_error/main.out | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cli/tests/testdata/npm/cjs_require_esm_mjs_error/main.out b/cli/tests/testdata/npm/cjs_require_esm_mjs_error/main.out index df37e997a..e6a8abe27 100644 --- a/cli/tests/testdata/npm/cjs_require_esm_mjs_error/main.out +++ b/cli/tests/testdata/npm/cjs_require_esm_mjs_error/main.out @@ -1,4 +1,2 @@ -error: Uncaught Error: [ERR_REQUIRE_ESM]: require() of ES Module [WILDCARD]esm_mjs.mjs from [WILDCARD]require_mjs.js not supported. Instead change the require to a dynamic import() which is available in all CommonJS modules. - at Module.load (node:module:[WILDCARD]) +error: Uncaught Error: require() of ES Module [WILDCARD]esm_mjs.mjs from [WILDCARD]require_mjs.js not supported. Instead change the require to a dynamic import() which is available in all CommonJS modules. [WILDCARD] - at Function.Module._load (node:module:[WILDCARD]) |
