Skip to content

UUID import in src/App.js #6

@sjournot

Description

@sjournot

In the Performing mutations chapter, for the UUID import of src/App.js:
import uuid from 'uuid/v4'

I got an error when compiling (npm start):

Failed to compile.
./src/App.js
Module not found: Can't resolve 'uuid/v4' in '/Users/x/my-amplify-app/src'

I replaced the import with this syntax, and it's working:
import {v4 as uuid} from "uuid";

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions