Open EnergeticPixels opened 2 months ago
Hi, could you upload the source code in a GH repository?
If I run the code at https://github.com/PacktPublishing/Accelerating-Server-Side-Development-with-Fastify/blob/main/Chapter%208/, I can't see the warnings.
I suspect some plugin version may mismatch, please compare them to be sure that they works with fastify v4 (the version used in the book)
@Eomm I will test this weekend. My problem could be originating from my ES6+ coding. I will let you know.
I am seeing a Fastify warning (FSTWRN001), in Chapter 8 for Chapter 8/routes/todos/files/routes.js line 80. Was this schema definition left out of the book and repo on purpose, maybe a training opportunity? When I run chapter 8, I get the below warnings.
warning I am getting: (node:14229) [FSTWRN001] FastifyWarning: The querystring schema for GET: /todos/files/export is missing. This may indicate the schema is not well specified. (node:14229) [FSTWRN001] FastifyWarning: The querystring schema for HEAD: /todos/files/export is missing. This may indicate the schema is not well specified.
I am also wondering about the 'sharedSchemaId' statement on line 29 of the same file. I cannot find that definition either. Also is the 'sharedSchemaId' keyword a part of Fastify's core? I cannot seem to find any reference to it.
Nodejs version 20.16.0 Windows 11 hosted WSL2 with Debian 11