You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run node as CLI an type inside : const { v4: uuidv4 } = require('uuid') or require('uuid') .
Expected behavior
Get uuidv4() function to test then.
Runtime
OS: Arch Linux
Runtime: Node.js
Runtime Version: v14.6.0
Additional information
The bug inside node is :
> uuid = require('uuid')
Uncaught:
TypeError [ERR_INVALID_MODULE_SPECIFIER]: Invalid module "[~path~]/node_modules/uuid/dist/index.js" must not include encoded "/" or "\" characters imported from [~path~]/node_modules/uuid/
at resolveExportsTarget (internal/modules/cjs/loader.js:564:15)
at resolveExportsTarget (internal/modules/cjs/loader.js:601:20)
at resolveExportsTarget (internal/modules/cjs/loader.js:601:20)
at applyExports (internal/modules/cjs/loader.js:469:14)
at resolveExports (internal/modules/cjs/loader.js:522:23)
at Function.Module._findPath (internal/modules/cjs/loader.js:654:31)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1052:27)
at Function.Module._load (internal/modules/cjs/loader.js:911:27)
at Module.require (internal/modules/cjs/loader.js:1125:19)
at require (internal/modules/cjs/helpers.js:75:18) {
code: 'ERR_INVALID_MODULE_SPECIFIER
The text was updated successfully, but these errors were encountered:
Describe the bug
I tried to run uuid.v4() inside node CLI.
How to reproduce
Run node as CLI an type inside :
const { v4: uuidv4 } = require('uuid')
orrequire('uuid')
.Expected behavior
Get uuidv4() function to test then.
Runtime
Additional information
The bug inside node is :
The text was updated successfully, but these errors were encountered: