Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

317
Visualizações
Issues with installing express.js on a nuxt/vue project

I'm struggling with installing and initiating express.js in a nuxt/vue project. This question correlates to my previous ones as the reason they didn't work is this. I might be asking a lot of questions but this project has suddenly turned into shambles. Whenever I install and include express.js in a project I get errors such as Module not found: Error: Can't resolve 'async_hooks' for packages which were installed with express.js (on_finished, raw_body). There's also another couple of errors which I'll have pasted down below. The project works perfectly without express, when using express my whole vue also doesn't work as demonstrated in my previous questions.

Errors: (npm run dev with middleware/express)

WARN  Compiled with 3 warnings                                                              

WARN  in C:/Users/Gibbo/node_modules/express/lib/view.js                                  
Critical dependency: the request of a dependency is an expression   
                         
WARN  in C:/Users/Gibbo/node_modules/on-finished/index.js                                    
Module not found: Error: Can't resolve 'async_hooks' in 'C:\Users\Gibbo\node_modules\on-finished'                                                                                             

WARN  in C:/Users/Gibbo/node_modules/raw-body/index.js                                       
Module not found: Error: Can't resolve 'async_hooks' in 'C:\Users\Gibbo\node_modules\raw-body'

ERROR  Failed to compile with 6 errors                                                       -

These dependencies were not found:                                                            
* fs in C:/Users/Gibbo/node_modules/destroy/index.js, C:/Users/Gibbo/node_modules/etag/index.js and 3 others
* net in C:/Users/Gibbo/node_modules/express/lib/request.js                                   
To install them, you can run: npm install --save fs net

You can likely reproduce this error by using npm init create-nuxt test and making an server file in a middleware folder. I made a github repo if anyone wants to reproduce it.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda