Uuid: version 7.0.0 doesn't work with react

Created on 25 Feb 2020  路  3Comments  路  Source: uuidjs/uuid

import { v1 as uuidv1 } from 'uuid'

gives this error:

Failed to compile.

./node_modules/uuid/index.js
Error: ENOENT: no such file or directory, open '/home/akhal3d/webapp/node_modules/uuid/index.js'

Most helpful comment

@nemoload the error you show does not seem to relate to this library. Have you tried to remove your node_modules/ directory and run npm install again?

Please provide the exact steps to reproduce your error.

I have just did this and everything works fine now! I have no idea why this happened in the first place. Thank you all for your help and response.

All 3 comments

Check which version do you have in /home/akhal3d/webapp/node_modules/uuid/package.json?

@nemoload the error you show does not seem to relate to this library. Have you tried to remove your node_modules/ directory and run npm install again?

Please provide the exact steps to reproduce your error.

@nemoload the error you show does not seem to relate to this library. Have you tried to remove your node_modules/ directory and run npm install again?

Please provide the exact steps to reproduce your error.

I have just did this and everything works fine now! I have no idea why this happened in the first place. Thank you all for your help and response.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sam-s4s picture sam-s4s  路  6Comments

anton-marchenko picture anton-marchenko  路  10Comments

mrtnbroder picture mrtnbroder  路  6Comments

8bitjoey picture 8bitjoey  路  5Comments

ctavan picture ctavan  路  5Comments