fastify / fastify-response-validation

A simple plugin that enables response validation for Fastify.
MIT License
53 stars 17 forks source link

randomUUID is not a function #91

Closed BrendonFlanagan closed 1 year ago

BrendonFlanagan commented 1 year ago

Prerequisites

Issue

I am getting an error in fastify v4.17.0 of FastifyError [Error]: Failed building the serialization schema for POST: /bwb2-payments-1/bwb2-payments, due to error randomUUID is not a function

Uzlopak commented 1 year ago

Use atleast node version 14.17 or node 15.6 .

Fdawgs commented 1 year ago

Use atleast node version 14.17 or node 15.6 .

Though we'd recommend Node >= 16 as 14 and 15 are EOL 😉

BrendonFlanagan commented 1 year ago

Yes, already using node 16

Uzlopak commented 1 year ago

I doubt it. Look if you are not accidently using an older node version. console.log(process.version) and see if you use the correct version.

Eomm commented 1 year ago

crypto.randomUUID([options])# Added in: v15.6.0, v14.17.0

https://nodejs.org/api/crypto.html#cryptorandomuuidoptions

BrendonFlanagan commented 1 year ago

I doubt it. Look if you are not accidently using an older node version. console.log(process.version) and see if you use the correct version.

I am using v14.17.0. I’m not dumb.

kibertoad commented 1 year ago

Please paste results of running "console.log(process.version)"

You've mentioned that you are using Node 16 before, so doesn't hurt to double-check.

Uzlopak commented 1 year ago

Closing due to inactivity. You are free to comment here if you still face this issue.