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
constFastify=require('fastify')constfastify=Fastify()letfastSocketconstfastifyWS=require('fastify-ws')// Register websocket supportfastify.register(fastifyWS,{// library: 'uws' // Use the uws library instead of the default ws library})
What the ???
/Users/kristianmandrup/repos/tecla5/assignments/my-app/node_modules/fastify/node_modules/ajv/lib/compile/resolve.js:222
return id ? id.replace(TRAILING_SLASH_HASH, '') :'';
^
TypeError: id.replace is not a function
at Function.normalizeId (/Users/kristianmandrup/repos/tecla5/assignments/my-app/node_modules/fastify/node_modules/ajv/lib/compile/resolve.js:222:18)
at Ajv._addSchema (/Users/kristianmandrup/repos/tecla5/assignments/my-app/node_modules/fastify/node_modules/ajv/lib/ajv.js:311:20)
at Ajv.compile (/Users/kristianmandrup/repos/tecla5/assignments/my-app/node_modules/fastify/node_modules/ajv/lib/ajv.js:117:24)
at Object.schemaCompiler (/Users/kristianmandrup/repos/tecla5/assignments/my-app/node_modules/fastify/lib/validation.js:112:19)
at build (/Users/kristianmandrup/repos/tecla5/assignments/my-app/node_modules/fastify/lib/validation.js:60:26)
at _fastify.after (/Users/kristianmandrup/repos/tecla5/assignments/my-app/node_modules/fastify/fastify.js:403:7)
at Function._encapsulateThreeParam (/Users/kristianmandrup/repos/tecla5/assignments/my-app/node_modules/avvio/boot.js:300:7)
at Boot.callWithCbOrNextTick (/Users/kristianmandrup/repos/tecla5/assignments/my-app/node_modules/avvio/boot.js:252:5)
at Boot._after (/Users/kristianmandrup/repos/tecla5/assignments/my-app/node_modules/avvio/boot.js:203:26)
at Plugin.exec (/Users/kristianmandrup/repos/tecla5/assignments/my-app/node_modules/avvio/plugin.js:33:17)
The text was updated successfully, but these errors were encountered:
What the ???
The text was updated successfully, but these errors were encountered: