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 import statements need updating #5

Open
klinkow opened this issue Jan 11, 2021 · 1 comment
Open

Uuid import statements need updating #5

klinkow opened this issue Jan 11, 2021 · 1 comment

Comments

@klinkow
Copy link

klinkow commented Jan 11, 2021

Import statements for uuid are deprecated, causing this console error:

Deep requiring like `const uuidv4 = require('uuid/v4');` is deprecated as of [email protected]. 
Please require the top-level module when using the Node.js CommonJS module or use 
ECMAScript Modules when bundling for the browser. See 
https://github.com/uuidjs/uuid#deep-requires-now-deprecated for more information.
@klinkow
Copy link
Author

klinkow commented Jan 11, 2021

Updating import uuid4 from 'uuid/v4' -> import { v4 as uuid4 } from 'uuid' across a few files solves the problem. I've got a branch that does this I can push up if you want to grant me permission @nikmolnar .

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