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

388
Visualizações
Error updating to sequelize@6.21.0 TypeError: The \"path\" argument must be of type string. Received null

I need to update to the latest version of sequelize.js for a Node.js API.

my local development environment:

windows 10, node -v: v16.15.1, npm -v: 8.11.0,

"typescript": "4.6.4",
"sqlite3": "5.0.6",

I do the update from sequelize@5.22.0 to sequelize@6.21.0, then I have this error:

{
  code: "ERR_INVALID_ARG_TYPE",
  message: "The \"path\" argument must be of type string. Received null",
  stack: "TypeError: The \"path\" argument must be of type string. Received null
  at new NodeError (node:internal/errors:372:5)
  at validateString (node:internal/validators:120:11)
  at Object.dirname (node:path:654:5)
  at ConnectionManager.getConnection
  (C:\\Users\\ublai7c\\vdm\\repositories\\stove\\stove-declaration-api\\node_modules\\sequelize\\src\\dialects\\sqlite\\connection-manager.js:70:25)
  at C:\\Users\\ublai7c\\vdm\\repositories\\stove\\stove-declaration-api\\node_modules\\sequelize\\src\\sequelize.js:629:111
  at C:\\Users\\ublai7c\\vdm\\repositories\\stove\\stove-declaration-api\\node_modules\\retry-as-promised\\index.js:69:21
  at new Promise (<anonymous>)
  at retryAsPromised (C:\\Users\\ublai7c\\vdm\\repositories\\stove\\stove-declaration-api\\node_modules\\retry-as-promised\\index.js:59:10)
  at Timeout._onTimeout (C:\\Users\\ublai7c\\vdm\\repositories\\stove\\stove-declaration-api\\node_modules\\retry-as-promised\\index.js:100:13)
  at listOnTimeout (node:internal/timers:559:17)
  at processTimers (node:internal/timers:502:7)"
}

I inspected the node_modules, then I can observe a difference between the wanted path node_modules\\sequelize\\src\\dialects\\sqlite\\connection-manager.js:70:25 and the current folder structure in my local development env.: C:\Users\ublai7c\vdm\repositories\stove\stove-declaration-api\node_modules\sequelize\lib\dialects\sqlite\connection-manager.js

I have try to rm -rf node_modules, then restart vs code, switch from git bash to powerShell,restart the computer then npm i, but I still have the same error.

I am having a hard time to find If the error coming from my local development env. or coming from the sequelize@6.21.0 ?

Any context or hypothesis would be approciated :)

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