Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

381
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda