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 : TypeError: Cannot read property ‘v1’ of undefined #456

Open
jmoors opened this issue Mar 11, 2020 · 1 comment
Open

uuid : TypeError: Cannot read property ‘v1’ of undefined #456

jmoors opened this issue Mar 11, 2020 · 1 comment

Comments

@jmoors
Copy link

jmoors commented Mar 11, 2020

Whilst following the code examples for the create API I was getting a “TypeError: Cannot read property ‘v1’ of undefined” error.

After investigation it seems there is a new version 7.x version of the uuid package has been released in the last few weeks, which has removed the default export.

https://github.com/uuidjs/uuid#upgrading-from-uuid3

Therefore the code examples need to be updated to using the new import syntax:

import { v1 as uuidv1 } from 'uuid';
noteId: uuidv1(),

Thanks to untilawesome on the forum for documenting this issue.

@jayair
Copy link
Contributor

jayair commented Mar 30, 2020

Hi there, we'll be updating this. For now, we pinned the uuid version to 3.4.0

https://serverless-stack.com/chapters/setup-the-serverless-framework.html#install-nodejs-packages

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