You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[nodemon] 2.0.15
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): .
[nodemon] watching extensions: js,mjs,json
[nodemon] starting node src/index.js
C:\Users\Berta\Desktop\nodejs-mysql-links-version-2018\src\lib\handlebars.js:2
const timeagoInstance = timeago();
^
TypeError: timeago is not a function
at Object. (C:\Users\Berta\Desktop\nodejs-mysql-links-version-2018\src\lib\handlebars.js:2:25)
at Module._compile (node:internal/modules/cjs/loader:1095:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1124:10)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:816:12)
at Module.require (node:internal/modules/cjs/loader:999:19)
at require (node:internal/modules/cjs/helpers:93:18)
at Object. (C:\Users\Berta\Desktop\nodejs-mysql-links-version-2018\src\index.js:26:12)
at Module._compile (node:internal/modules/cjs/loader:1095:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1124:10)
[nodemon] app crashed - waiting for file changes before starting...
The text was updated successfully, but these errors were encountered:
para que te funcione debes eliminar la linea const timeagoInstance = timeago(); y donde llamas a la función timeagoInstance lo reemplazas con timeago con eso te debiera funcionar a mi me funciono . te quedaria algo asi:
hola buenas:
he estado viendo el curso y me esta dando este error, no entiendo por que si la notacion fue actualizada
[nodemon] 2.0.15
[nodemon] to restart at any time, enter
rs
[nodemon] watching path(s): .
[nodemon] watching extensions: js,mjs,json
[nodemon] starting
node src/index.js
C:\Users\Berta\Desktop\nodejs-mysql-links-version-2018\src\lib\handlebars.js:2
const timeagoInstance = timeago();
^
TypeError: timeago is not a function
at Object. (C:\Users\Berta\Desktop\nodejs-mysql-links-version-2018\src\lib\handlebars.js:2:25)
at Module._compile (node:internal/modules/cjs/loader:1095:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1124:10)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:816:12)
at Module.require (node:internal/modules/cjs/loader:999:19)
at require (node:internal/modules/cjs/helpers:93:18)
at Object. (C:\Users\Berta\Desktop\nodejs-mysql-links-version-2018\src\index.js:26:12)
at Module._compile (node:internal/modules/cjs/loader:1095:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1124:10)
[nodemon] app crashed - waiting for file changes before starting...
The text was updated successfully, but these errors were encountered: