aws-appsync-react-workshop icon indicating copy to clipboard operation
aws-appsync-react-workshop copied to clipboard

UUID import in src/App.js

Open sjournot opened this issue 5 years ago • 0 comments

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";

sjournot avatar May 17 '20 14:05 sjournot