question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No valid exports main found for '...\node_modules\uuid'

See original GitHub issue

Describe the bug

Just installed version “8.0.0” and I’m experiencing the following behavior Trying to import the lib this way import { v4 as uuidv4 } from "uuid";

and getting No valid exports main found for '...\node_modules\uuid'

Rolling back to “7.0.3” it works fine.

Expected behavior

The lib should work fine.

Runtime

  • OS: Windows
  • Runtime: Node.js
  • Runtime Version: 13.5

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Leandro-Albanocommented, Apr 29, 2020

Cool, thank you so much, that worked!

Read more comments on GitHub >

github_iconTop Results From Across the Web

No valid exports main found for node_modules\uuid #5381
Hi, I just updated my project using npm -update @loopback/cli and lb4 update. No errors on build but when I start I get...
Read more >
How to fix “Error: No valid exports main found for ... - Dev Genius
The solution. After some digging around, I found the suggestion to update to Node 14.5. There are many ways to do this; I...
Read more >
Error: No valid exports main found for '/usr/local/lib ...
I execute sls uninstall to try undeploy, but a lost the command line. when a Execute serverless --version I see: Error: No valid...
Read more >
Error: No valid exports main found for (Module path)
I managed to fix the problem. Uninstall NodeJS, NPM and NVM | Here is how on Mac OS How do I completely uninstall...
Read more >
How to fix “Error: No valid exports main found ... - Godwill Barasa
How to fix “Error: No valid exports main found for '/node_modules/packname by Godwill Barasa. Turns out I was running V. 10, yet the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found