Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UUID fails to load on node 13.5.0 #440

Closed
cloudpremise opened this issue May 7, 2020 · 1 comment
Closed

UUID fails to load on node 13.5.0 #440

cloudpremise opened this issue May 7, 2020 · 1 comment

Comments

@cloudpremise
Copy link

Describe the bug

I am unable to load UUID using Node v.13.5.0 on Catalina v10.15.2.

To Reproduce

  1. nvm use default (which currently points to v13.5.0)
  2. npm install uuid
  3. attempt to run local.js file with:
    const { v4: uuidv4 } = require('uuid');
    delcared in global.
  4. Receive error:
    internal/modules/cjs/loader.js:625
    throw e;
    ^

Error: No valid exports main found for '/Users/greg/Dev/repos/searchmysocial-async/dynamoScanOperations/node_modules/uuid'
at resolveExportsTarget (internal/modules/cjs/loader.js:622:9)
at applyExports (internal/modules/cjs/loader.js:499:14)
at resolveExports (internal/modules/cjs/loader.js:548:12)
at Function.Module._findPath (internal/modules/cjs/loader.js:654:22)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:953:27)
at Function.Module._load (internal/modules/cjs/loader.js:859:27)
at Module.require (internal/modules/cjs/loader.js:1028:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (/Users/greg/Dev/repos/searchmysocial-async/dynamoScanOperations/lambda.js:6:24)
at Module._compile (internal/modules/cjs/loader.js:1139:30) {
code: 'MODULE_NOT_FOUND'
}

  1. so revert nvm using: nvm use v12.14.0
  2. node local.js. Program executes successfully.

Expected behavior

I should be able to use UUID with latest version of node.

Runtime

  • OS: macOS, Catalina
  • Runtime: Node.js from zsh
  • Runtime Version: v13.5.0

Additional context

My package.json includes the following:

"uuid": "^8.0.0"
@LinusU
Copy link
Member

LinusU commented May 7, 2020

Node.js verison 13.5.x is not supported by UUID v8.x, upgrade to a later version of Node.js 13.x, or to Node.js 14.x.

see #428

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant