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

No valid exports for node_modules/uuid ( v8.0.0 ) #436

Closed
svarlitskiy opened this issue May 5, 2020 · 1 comment
Closed

No valid exports for node_modules/uuid ( v8.0.0 ) #436

svarlitskiy opened this issue May 5, 2020 · 1 comment

Comments

@svarlitskiy
Copy link

svarlitskiy commented May 5, 2020

Describe the bug

Welcome to Node.js v13.5.0.
Type ".help" for more information.
> uuid = require('uuid')
Uncaught:
Error: No valid exports main found for '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) {
  code: 'MODULE_NOT_FOUND'
}

To Reproduce

Steps to reproduce the behavior:

  1. Install Nodejs v13.5.0
  2. npm install uuid@8.0.0
  3. Launch node
  4. require const uuid = require('uuid');

Runtime

  • OS: Linux 4.19.0-8-amd64 Debian x86_64 GNU/Linux
  • Nodejs v13.5.0
  • npm v6.14.4
  • uuid v8.0.0
@broofa
Copy link
Member

broofa commented May 6, 2020

Duplicate of #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

2 participants