Next.js: api-routes-apollo-server-and-client-auth errors

Created on 11 Jun 2020  路  5Comments  路  Source: vercel/next.js

Bug report

I installed the example, installed the dependencies and yarn dev, and the errors appeared:

Error from chokidar (C:): Error: EBUSY: resource busy or locked, lstat 'C:\pagefile.sys'
error - ./lib/user.js
Module not found: Can't resolve 'uuid/v4' in 'C:\Users\zefex\Desktop\api-routes-apollo-server-and-client-auth\lib'
wait - compiling...
error - ./lib/user.js
Module not found: Can't resolve 'uuid/v4' in 'C:\Users\zefex\Desktop\api-routes-apollo-server-and-client-auth\lib'

To Reproduce

  1. yarn create next-app --example api-routes-apollo-server-and-client-auth api-routes-apollo-server-and-client-auth-app
  2. yarn dev

Expected behavior

It should work normally.

System information

  • OS: Windows 7
  • Browser: Firefox 77.0.1
  • Version of Next.js: latest
  • Version of Node.js: 12.16.3

Most helpful comment

@zefexdeveloper Thank you for the report, it has been fixed 馃槍

All 5 comments

I think that @lfades was the one that made the changes to work with SSG.

@zefexdeveloper Do you have uuid inside dependencies? 馃 Looks like Windows may be blocking access to the module

@zefexdeveloper Thank you for the report, it has been fixed 馃槍

@lfades Thank you for the fast update and the example. Keep up the good work :heart:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ematipico picture ematipico  路  66Comments

Timer picture Timer  路  87Comments

matthewmueller picture matthewmueller  路  102Comments

rauchg picture rauchg  路  208Comments

acanimal picture acanimal  路  74Comments