Cannot find module 'uuid/v4'
See original GitHub issueHi,
I install uuid module on my Windows 10 64bit with WebStorm and NodeJS 8.8.1 but when I require the module I get this error:
error: uncaughtException: Cannot find module 'uuid/v4'
Any idea?
Thanks
Issue Analytics
- State:
- Created 6 years ago
- Comments:16 (7 by maintainers)
Top Results From Across the Web
NPM: Cannot find module 'uuid' - Stack Overflow
I have this message when i try to use npm: > $ npm module.js:472 throw ...
Read more >uuidv4 - npm
Start using uuidv4 in your project by running `npm i uuidv4`. ... This module will be deprecated in the future in favour of...
Read more >Module not found: Can't resolve 'uuid/v4' - Super User
Install uuid library via node package manager i.e. npm npm install uuid. Then import uuidv4 from uuid library
Read more >Cannot find module 'uuid' error | bobbyhadz
To solve the error "Cannot find module 'uuid'", make sure to install the uuid package by opening your terminal in your project's root...
Read more >Cannot find module 'uuid' error [Solved] - Reactgo
The “Cannot find module 'uuid'” error occurs due to one of the following ... import { v4 as uuidv4 } from 'uuid'; console.log(uuidv4()); ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just ran into this issue on my computer, it was because I was using the newer version of the library than my code was written for.
The original code was
Newer versions of this library requires it to be
Hope this helps anyone else searching in the future 👍
If code size is a primary consideration for people, there are options:
uuid@3.4
and the deep-import syntax