-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip - actively decorate errors from importing hooks
- Loading branch information
Showing
3 changed files
with
32 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,25 @@ | ||
(node:*) ExperimentalWarning: The ESM module loader is experimental. | ||
(node:*) ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time | ||
internal/modules/esm/resolve.js:* | ||
let url = moduleWrapResolve(specifier, parentURL); | ||
^ | ||
(node:*) ExperimentalWarning: The ESM module loader is experimental. | ||
|
||
events.js:* | ||
throw er; // Unhandled 'error' event | ||
^ | ||
Error: Cannot find package 'i-dont-exist' imported from * | ||
at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:*:*) | ||
at defaultResolve (internal/modules/esm/resolve.js:*:*) | ||
at Object.resolveImportURL (internal/modules/esm/loader.js:*:*) | ||
at Loader.resolve (internal/modules/esm/loader.js:*:*) | ||
at Loader.getModuleJob (internal/modules/esm/loader.js:*:*) | ||
at Loader.import (internal/modules/esm/loader.js:*:*) | ||
at internal/process/esm_loader.js:*:* | ||
at Object.initializeLoader (internal/process/esm_loader.js:*:*) | ||
at runMainESM (internal/modules/run_main.js:*:*) | ||
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:*:*) | ||
at internal/main/run_main_module.js:*:* { | ||
at Loader.importWrapped (internal/modules/esm/loader.js:*:*) | ||
at internal/modules/esm/worker.js:*:* | ||
at NativeModule.compileForInternalLoader (internal/bootstrap/loaders.js:*:*) | ||
at nativeModuleRequire (internal/bootstrap/loaders.js:*:*) | ||
at MessagePort.<anonymous> (internal/main/worker_thread.js:*:*) | ||
at MessagePort.emit (events.js:*:*) | ||
Emitted 'error' event on Worker instance at: | ||
at Worker.[kOnErrorMessage] (internal/worker.js:*:*) | ||
at Worker.[kOnMessage] (internal/worker.js:*:*) | ||
at MessagePort.<anonymous> (internal/worker.js:*:*) | ||
at MessagePort.emit (events.js:*:*) | ||
at MessagePort.onmessage (internal/worker/io.js:*:*) { | ||
code: 'ERR_MODULE_NOT_FOUND' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
(node:*) ExperimentalWarning: The ESM module loader is experimental. | ||
(node:*) ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time | ||
file://*/test/fixtures/es-module-loaders/syntax-error.mjs:2 | ||
(node:*) ExperimentalWarning: The ESM module loader is experimental. | ||
|
||
events.js:* | ||
throw er; // Unhandled 'error' event | ||
^ | ||
file:///*/test/fixtures/es-module-loaders/syntax-error.mjs:2 | ||
await async () => 0; | ||
^^^^^ | ||
|
||
SyntaxError: Unexpected reserved word | ||
at Loader.moduleStrategy (internal/modules/esm/translators.js:*:*) | ||
at async link (internal/modules/esm/module_job.js:*:*) | ||
Emitted 'error' event on Worker instance at: | ||
at Worker.[kOnErrorMessage] (internal/worker.js:*:*) | ||
at Worker.[kOnMessage] (internal/worker.js:*:*) | ||
at MessagePort.<anonymous> (internal/worker.js:*:*) | ||
at MessagePort.emit (events.js:*:*) | ||
at MessagePort.onmessage (internal/worker/io.js:*:*) |