Fastify: AvvioError [Error]: Plugin did not start in time

Advertisements I’m currently working on a typescript/fastify project (which was a terrible stack choice imo). I’m getting this error while registering routes: /home/20015007/Documents/Ecole/EcoWeb/econos-back/node_modules/avvio/plugin.js:122 const err = new AVV_ERR_READY_TIMEOUT(name) ^ AvvioError [Error]: Plugin did not start in time: ‘declareHealthRoutes’. You may have forgotten to call ‘done’ function or to resolve a Promise at Timeout._onTimeout (/home/20015007/Documents/Ecole/EcoWeb/econos-back/node_modules/avvio/plugin.js:122:19) at… Read More Fastify: AvvioError [Error]: Plugin did not start in time

Invalid regular expression – Invalid property name in character class

Advertisements I am using a fastify server, containing a typescript file that calls a function, which make sure people won’t send unwanted characters. Here is the function : const SAFE_STRING_REPLACE_REGEXP = /[^\p{Latin}\p{Zs}\p{M}\p{Nd}\-\’\s]/gu; function secure(text:string) { return text.replace(SAFE_STRING_REPLACE_REGEXP, "").trim(); } But when I try to launch my server, I got an error message : "Invalid regular… Read More Invalid regular expression – Invalid property name in character class