auth-module
auth-module copied to clipboard
Weird errors on Nuxt start after installing auth module
Version
module: 5.0.0-1648802546.c9880dc nuxt: ^2.15.8
Nuxt configuration
mode:
- [x] universal
- [ ] spa
Nuxt configuration
What is expected?
Nuxt should start successfully.
What is actually happening?
Failing to start.
These are the errors i receive after installing and running Nuxt and Nuxt auth-module.
WARN Compiled with 3 warnings friendly-errors 19:44:07
WARN in ./node_modules/body-parser/node_modules/on-finished/index.js friendly-errors 19:44:07
Module not found: Error: Can't resolve 'async_hooks' in 'C:\Users\jakub\Projects\tiktok-clone-30days\client\node_modules\body-parser\node_modules\on-finished'
friendly-errors 19:44:07
WARN in ./node_modules/raw-body/index.js friendly-errors 19:44:07
Module not found: Error: Can't resolve 'async_hooks' in 'C:\Users\jakub\Projects\tiktok-clone-30days\client\node_modules\raw-body'
friendly-errors 19:44:07
WARN in ./node_modules/hasha/index.js friendly-errors 19:44:07
Module not found: Error: Can't resolve 'worker_threads' in 'C:\Users\jakub\Projects\tiktok-clone-30days\client\node_modules\hasha'
friendly-errors 19:44:07
ERROR Failed to compile with 3 errors friendly-errors 19:44:07
This dependency was not found: friendly-errors 19:44:07
friendly-errors 19:44:07
* fs in ./node_modules/@nuxtjs/auth-next/dist/module.js, ./node_modules/destroy/index.js and 1 other
friendly-errors 19:44:07
To install it, you can run: npm install --save fs friendly-errors 19:44:07
i Waiting for file changes 19:44:07
i Memory usage: 853 MB (RSS: 1.23 GB) 19:44:07
i Listening on: http://localhost:3000/ 19:44:07
No issues found. 19:44:07
WARN Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\DumpStack.log.tmp' 19:44:07
Installing fs won't fix it.
Steps to reproduce
Additional information
Checklist
- [x] I have tested with the latest Nuxt version and the issue still occurs
- [x] I have tested with the latest module version and the issue still occurs
- [x] I have searched the issue tracker and this issue hasn't been reported yet
same case here
If I remember correctly, I resolved similar issues with setting related folder permissions to "full" for "Everyone". In this case, try "C:\Users\jakub\Projects" and "C:\Windows\Temp" (and propagate to all sub-folders and files).
Have the same errors. Has anybody a solution for this?
same to me.
Hi, see this thread if you have this issue. May help you: https://github.com/nuxt-community/auth-module/issues/1109#issuecomment-830650265