-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path3.js
19 lines (17 loc) · 857 Bytes
/
3.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { promises } from 'stream/promises'
/*
(node:24148) ExperimentalWarning: The ESM module loader is experimental.
internal/modules/run_main.js:54
internalBinding('errors').triggerUncaughtException(
^
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'stream' imported from /path/to/node-stream-esm-issue-demo/3.js
at packageResolve (internal/modules/esm/resolve.js:616:9)
at moduleResolve (internal/modules/esm/resolve.js:655:14)
at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:748:11)
at Loader.resolve (internal/modules/esm/loader.js:97:40)
at Loader.getModuleJob (internal/modules/esm/loader.js:243:28)
at ModuleWrap.<anonymous> (internal/modules/esm/module_job.js:42:40)
at link (internal/modules/esm/module_job.js:41:36) {
code: 'ERR_MODULE_NOT_FOUND'
}
*/