nuxt-community / auth-module

Zero-boilerplate authentication support for Nuxt 2
https://auth.nuxtjs.org
MIT License
1.93k stars 924 forks source link

Weird errors on Nuxt start after installing auth module #1795

Open Atsukoro1 opened 1 year ago

Atsukoro1 commented 1 year ago

Version

module: 5.0.0-1648802546.c9880dc nuxt: ^2.15.8

Nuxt configuration

mode:

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

bagaskarala commented 1 year ago

same case here

WinWinsCoding commented 1 year ago

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).

MaxNvk commented 1 year ago

Have the same errors. Has anybody a solution for this?

JasonGaoG commented 11 months ago

same to me.

FM-O commented 9 months ago

Hi, see this thread if you have this issue. May help you: https://github.com/nuxt-community/auth-module/issues/1109#issuecomment-830650265