Hola, como se corre la solucion final?, pues al hacerlo con:
deno run -A server.ts
pero tira un error sobre el login:
Check server.ts
error: TS2532 [ERROR]: Object is possibly 'undefined'.
const user = users.filter((x) => x.username === value.username);
~~~~~
at /controllers/user.ts:38:51
TS2339 [ERROR]: Property 'username' does not exist on type 'Promise | Promise | FormDataReader | Promise | Promise'.
Property 'username' does not exist on type 'Promise'.
const user = users.filter((x) => x.username === value.username);
~~~~~~~~
at /controllers/user.ts:38:57
Hola, como se corre la solucion final?, pues al hacerlo con:
deno run -A server.ts
pero tira un error sobre el login:
Check server.ts
error: TS2532 [ERROR]: Object is possibly 'undefined'.
const user = users.filter((x) => x.username === value.username);
~~~~~
at /controllers/user.ts:38:51
TS2339 [ERROR]: Property 'username' does not exist on type 'Promise | Promise | FormDataReader | Promise | Promise'.
Property 'username' does not exist on type 'Promise'.
const user = users.filter((x) => x.username === value.username);
~~~~~~~~
at /controllers/user.ts:38:57
Hola Miguel, la solución final basta con solo ejecutar el comando "drun" y listo.