-
Notifications
You must be signed in to change notification settings - Fork 15
Closed
Description
Node.js REPL:
Welcome to Node.js v20.15.1.
Type ".help" for more information.
> require('node-stdlib-browser')
Uncaught Error: Cannot find module './mock/empty.js'
Require stack:
- <repl>
at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
at Function.resolve (node:internal/modules/helpers:190:19)
at resolvePath (C:\Users\richi\Documents\GitHub\node-polyfill-webpack-plugin\node_modules\node-stdlib-browser\cjs\index.js:37:333) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '<repl>' ]
}
> await import('node-stdlib-browser')
Uncaught Error: Cannot find module './mock/empty.js'
Require stack:
- <repl>
at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
at Function.resolve (node:internal/modules/helpers:190:19)
at resolvePath (file:///C:/Users/richi/Documents/GitHub/node-polyfill-webpack-plugin/node_modules/node-stdlib-browser/esm/index.js:30:133)
at file:///C:/Users/richi/Documents/GitHub/node-polyfill-webpack-plugin/node_modules/node-stdlib-browser/esm/index.js:40:23
at ModuleJob.run (node:internal/modules/esm/module_job:222:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
at async importModuleDynamicallyWrapper (node:internal/vm/module:432:15)
at async REPL2:1:33 {
code: 'MODULE_NOT_FOUND',
requireStack: [ '<repl>' ]
}
./mock/empty.js
does exist though, maybe the relative resolution system broke somehow.
Able to import from a regular file though.
Metadata
Metadata
Assignees
Labels
No labels